home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 …ember: Reference Library / Dev.CD Dec 94.toast / Technical Documentation / Inside Macintosh / Advanced Color Imaging (Draft) / Color Picker Manager < prev    next >
MacBinary  |  1994-10-25  |  997.6 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Oct 13 13:42:00 1994, modified Tue Oct 25 04:29:29 1994, creator 'HLX2', type 'ONLN', 1006533 bytes "Color Picker Manager" , at 0xf5c45 14783 bytes resource default (weak)
99% file data default
66% TrID raw Group 3 FAX bitmap default (weak)
33% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 43 6f 6c 6f 72 20 | 50 69 63 6b 65 72 20 4d |..Color |Picker M|
|00000010| 61 6e 61 67 65 72 00 00 | 00 00 00 00 00 00 00 00 |anager..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0f 5b c5 00 | 00 39 bf aa c3 21 e8 aa |.....[..|.9...!..|
|00000060| d2 72 69 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.ri.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d4 0c 00 00 |........|........|
|00000080| 0d 53 65 65 64 20 4e 6f | 74 65 0d 0d 43 6f 6c 6f |.Seed No|te..Colo|
|00000090| 72 20 50 69 63 6b 65 72 | 20 4d 61 6e 61 67 65 72 |r Picker| Manager|
|000000a0| 0d 0d 0d 49 53 42 4e 20 | 30 2d 32 30 31 2d 78 78 |...ISBN |0-201-xx|
|000000b0| 78 78 78 2d 78 0d 31 20 | 32 20 33 20 34 20 35 20 |xxx-x.1 |2 3 4 5 |
|000000c0| 36 20 37 20 38 20 39 2d | 4d 55 2d 39 36 39 35 39 |6 7 8 9-|MU-96959|
|000000d0| 34 39 33 39 32 0d 46 69 | 72 73 74 20 50 72 69 6e |49392.Fi|rst Prin|
|000000e0| 74 69 6e 67 2c 20 4a 75 | 6e 65 20 31 39 39 33 0d |ting, Ju|ne 1993.|
|000000f0| 0d 0d 0d 54 68 65 20 70 | 61 70 65 72 20 75 73 65 |...The p|aper use|
|00000100| 64 20 69 6e 20 74 68 69 | 73 20 62 6f 6f 6b 20 6d |d in thi|s book m|
|00000110| 65 65 74 73 20 74 68 65 | 20 45 50 41 20 73 74 61 |eets the| EPA sta|
|00000120| 6e 64 61 72 64 73 20 66 | 6f 72 20 72 65 63 79 63 |ndards f|or recyc|
|00000130| 6c 65 64 20 66 69 62 65 | 72 2e 0d 0d 0d f0 09 41 |led fibe|r......A|
|00000140| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2c 20 49 |pple Com|puter, I|
|00000150| 6e 63 2e 0d a9 20 3c 24 | 79 65 61 72 3e 2c 20 41 |nc... <$|year>, A|
|00000160| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2c 20 49 |pple Com|puter, I|
|00000170| 6e 63 2e 0d 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |nc..All |rights r|
|00000180| 65 73 65 72 76 65 64 2e | 20 0d 4e 6f 20 70 61 72 |eserved.| .No par|
|00000190| 74 20 6f 66 20 74 68 69 | 73 20 70 75 62 6c 69 63 |t of thi|s public|
|000001a0| 61 74 69 6f 6e 20 6d 61 | 79 20 62 65 20 72 65 70 |ation ma|y be rep|
|000001b0| 72 6f 64 75 63 65 64 2c | 20 73 74 6f 72 65 64 20 |roduced,| stored |
|000001c0| 69 6e 20 61 20 72 65 74 | 72 69 65 76 61 6c 20 73 |in a ret|rieval s|
|000001d0| 79 73 74 65 6d 2c 20 6f | 72 20 74 72 61 6e 73 6d |ystem, o|r transm|
|000001e0| 69 74 74 65 64 2c 20 69 | 6e 20 61 6e 79 20 66 6f |itted, i|n any fo|
|000001f0| 72 6d 20 6f 72 20 62 79 | 20 61 6e 79 20 6d 65 61 |rm or by| any mea|
|00000200| 6e 73 2c 20 6d 65 63 68 | 61 6e 69 63 61 6c 2c 20 |ns, mech|anical, |
|00000210| 65 6c 65 63 74 72 6f 6e | 69 63 2c 20 70 68 6f 74 |electron|ic, phot|
|00000220| 6f 63 6f 70 79 69 6e 67 | 2c 20 72 65 63 6f 72 64 |ocopying|, record|
|00000230| 69 6e 67 2c 20 6f 72 20 | 6f 74 68 65 72 77 69 73 |ing, or |otherwis|
|00000240| 65 2c 20 77 69 74 68 6f | 75 74 20 70 72 69 6f 72 |e, witho|ut prior|
|00000250| 20 77 72 69 74 74 65 6e | 20 70 65 72 6d 69 73 73 | written| permiss|
|00000260| 69 6f 6e 20 6f 66 20 41 | 70 70 6c 65 20 43 6f 6d |ion of A|pple Com|
|00000270| 70 75 74 65 72 2c 20 49 | 6e 63 2e 20 50 72 69 6e |puter, I|nc. Prin|
|00000280| 74 65 64 20 69 6e 20 74 | 68 65 20 55 6e 69 74 65 |ted in t|he Unite|
|00000290| 64 20 53 74 61 74 65 73 | 20 6f 66 20 41 6d 65 72 |d States| of Amer|
|000002a0| 69 63 61 2e 0d 4e 6f 20 | 6c 69 63 65 6e 73 65 73 |ica..No |licenses|
|000002b0| 2c 20 65 78 70 72 65 73 | 73 20 6f 72 20 69 6d 70 |, expres|s or imp|
|000002c0| 6c 69 65 64 2c 20 61 72 | 65 20 67 72 61 6e 74 65 |lied, ar|e grante|
|000002d0| 64 20 77 69 74 68 20 72 | 65 73 70 65 63 74 20 74 |d with r|espect t|
|000002e0| 6f 20 61 6e 79 20 6f 66 | 20 74 68 65 20 74 65 63 |o any of| the tec|
|000002f0| 68 6e 6f 6c 6f 67 79 20 | 64 65 73 63 72 69 62 65 |hnology |describe|
|00000300| 64 20 69 6e 20 74 68 69 | 73 20 62 6f 6f 6b 2e 20 |d in thi|s book. |
|00000310| 41 70 70 6c 65 20 72 65 | 74 61 69 6e 73 20 61 6c |Apple re|tains al|
|00000320| 6c 20 69 6e 74 65 6c 6c | 65 63 74 75 61 6c 20 70 |l intell|ectual p|
|00000330| 72 6f 70 65 72 74 79 20 | 72 69 67 68 74 73 20 61 |roperty |rights a|
|00000340| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 74 |ssociate|d with t|
|00000350| 68 65 20 74 65 63 68 6e | 6f 6c 6f 67 79 20 64 65 |he techn|ology de|
|00000360| 73 63 72 69 62 65 64 20 | 69 6e 20 74 68 69 73 20 |scribed |in this |
|00000370| 62 6f 6f 6b 2e 20 54 68 | 69 73 20 62 6f 6f 6b 20 |book. Th|is book |
|00000380| 69 73 20 69 6e 74 65 6e | 64 65 64 20 74 6f 20 61 |is inten|ded to a|
|00000390| 73 73 69 73 74 20 61 70 | 70 6c 69 63 61 74 69 6f |ssist ap|plicatio|
|000003a0| 6e 20 64 65 76 65 6c 6f | 70 65 72 73 20 74 6f 20 |n develo|pers to |
|000003b0| 64 65 76 65 6c 6f 70 20 | 61 70 70 6c 69 63 61 74 |develop |applicat|
|000003c0| 69 6f 6e 73 20 6f 6e 6c | 79 20 66 6f 72 20 41 70 |ions onl|y for Ap|
|000003d0| 70 6c 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 63 6f |ple Maci|ntosh co|
|000003e0| 6d 70 75 74 65 72 73 2e | 0d 41 70 70 6c 65 20 43 |mputers.|.Apple C|
|000003f0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 32 30 |omputer,| Inc..20|
|00000400| 35 32 35 20 4d 61 72 69 | 61 6e 69 20 41 76 65 6e |525 Mari|ani Aven|
|00000410| 75 65 0d 43 75 70 65 72 | 74 69 6e 6f 2c 20 43 41 |ue.Cuper|tino, CA|
|00000420| 20 39 35 30 31 34 0d 34 | 30 38 2d 39 39 36 2d 31 | 95014.4|08-996-1|
|00000430| 30 31 30 0d 41 70 70 6c | 65 2c 20 74 68 65 20 41 |010.Appl|e, the A|
|00000440| 70 70 6c 65 20 6c 6f 67 | 6f 2c 20 41 50 44 41 2c |pple log|o, APDA,|
|00000450| 20 41 70 70 6c 65 4c 69 | 6e 6b 2c 20 41 70 70 6c | AppleLi|nk, Appl|
|00000460| 65 54 61 6c 6b 2c 20 49 | 6d 61 67 65 57 72 69 74 |eTalk, I|mageWrit|
|00000470| 65 72 2c 20 4c 61 73 65 | 72 57 72 69 74 65 72 2c |er, Lase|rWriter,|
|00000480| 20 4d 61 63 69 6e 74 6f | 73 68 2c 20 61 6e 64 20 | Macinto|sh, and |
|00000490| 53 74 79 6c 65 57 72 69 | 74 65 72 20 61 72 65 20 |StyleWri|ter are |
|000004a0| 74 72 61 64 65 6d 61 72 | 6b 73 20 6f 66 20 41 70 |trademar|ks of Ap|
|000004b0| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|000004c0| 63 2e 2c 20 72 65 67 69 | 73 74 65 72 65 64 20 69 |c., regi|stered i|
|000004d0| 6e 20 74 68 65 20 55 6e | 69 74 65 64 20 53 74 61 |n the Un|ited Sta|
|000004e0| 74 65 73 20 61 6e 64 20 | 6f 74 68 65 72 20 63 6f |tes and |other co|
|000004f0| 75 6e 74 72 69 65 73 2e | 0d 43 6f 6c 6f 72 53 79 |untries.|.ColorSy|
|00000500| 6e 63 2c 20 46 69 6e 64 | 65 72 2c 20 50 6f 77 65 |nc, Find|er, Powe|
|00000510| 72 42 6f 6f 6b 2c 20 51 | 75 69 63 6b 44 72 61 77 |rBook, Q|uickDraw|
|00000520| 2c 20 51 75 69 63 6b 54 | 69 6d 65 2c 20 52 65 73 |, QuickT|ime, Res|
|00000530| 45 64 69 74 2c 20 61 6e | 64 20 53 79 73 74 65 6d |Edit, an|d System|
|00000540| 20 37 20 61 72 65 20 74 | 72 61 64 65 6d 61 72 6b | 7 are t|rademark|
|00000550| 73 20 6f 66 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |s of App|le Compu|
|00000560| 74 65 72 2c 20 49 6e 63 | 2e 0d 41 64 6f 62 65 20 |ter, Inc|..Adobe |
|00000570| 49 6c 6c 75 73 74 72 61 | 74 6f 72 20 61 6e 64 20 |Illustra|tor and |
|00000580| 50 6f 73 74 53 63 72 69 | 70 74 20 61 72 65 20 74 |PostScri|pt are t|
|00000590| 72 61 64 65 6d 61 72 6b | 73 20 6f 66 20 41 64 6f |rademark|s of Ado|
|000005a0| 62 65 20 53 79 73 74 65 | 6d 73 20 49 6e 63 6f 72 |be Syste|ms Incor|
|000005b0| 70 6f 72 61 74 65 64 2c | 20 77 68 69 63 68 20 6d |porated,| which m|
|000005c0| 61 79 20 62 65 20 72 65 | 67 69 73 74 65 72 65 64 |ay be re|gistered|
|000005d0| 20 69 6e 20 63 65 72 74 | 61 69 6e 20 6a 75 72 69 | in cert|ain juri|
|000005e0| 73 64 69 63 74 69 6f 6e | 73 2e 0d 41 47 46 41 20 |sdiction|s..AGFA |
|000005f0| 69 73 20 61 20 74 72 61 | 64 65 6d 61 72 6b 20 6f |is a tra|demark o|
|00000600| 66 20 41 67 66 61 2d 47 | 65 76 61 65 72 74 2e 0d |f Agfa-G|evaert..|
|00000610| 41 6d 65 72 69 63 61 20 | 4f 6e 6c 69 6e 65 20 69 |America |Online i|
|00000620| 73 20 61 20 73 65 72 76 | 69 63 65 20 6d 61 72 6b |s a serv|ice mark|
|00000630| 20 6f 66 20 51 75 61 6e | 74 75 6d 20 43 6f 6d 70 | of Quan|tum Comp|
|00000640| 75 74 65 72 20 53 65 72 | 76 69 63 65 73 2c 20 49 |uter Ser|vices, I|
|00000650| 6e 63 2e 0d 43 6c 61 73 | 73 69 63 20 69 73 20 61 |nc..Clas|sic is a|
|00000660| 20 72 65 67 69 73 74 65 | 72 65 64 20 74 72 61 64 | registe|red trad|
|00000670| 65 6d 61 72 6b 20 6c 69 | 63 65 6e 73 65 64 20 74 |emark li|censed t|
|00000680| 6f 20 41 70 70 6c 65 20 | 43 6f 6d 70 75 74 65 72 |o Apple |Computer|
|00000690| 2c 20 49 6e 63 2e 0d 43 | 6f 6d 70 75 53 65 72 76 |, Inc..C|ompuServ|
|000006a0| 65 20 69 73 20 61 20 72 | 65 67 69 73 74 65 72 65 |e is a r|egistere|
|000006b0| 64 20 73 65 72 76 69 63 | 65 20 6d 61 72 6b 20 6f |d servic|e mark o|
|000006c0| 66 20 43 6f 6d 70 75 53 | 65 72 76 65 2c 20 49 6e |f CompuS|erve, In|
|000006d0| 63 2e 0d 46 72 61 6d 65 | 4d 61 6b 65 72 20 69 73 |c..Frame|Maker is|
|000006e0| 20 61 20 72 65 67 69 73 | 74 65 72 65 64 20 74 72 | a regis|tered tr|
|000006f0| 61 64 65 6d 61 72 6b 20 | 6f 66 20 46 72 61 6d 65 |ademark |of Frame|
|00000700| 20 54 65 63 68 6e 6f 6c | 6f 67 79 20 43 6f 72 70 | Technol|ogy Corp|
|00000710| 6f 72 61 74 69 6f 6e 2e | 0d 48 65 6c 76 65 74 69 |oration.|.Helveti|
|00000720| 63 61 20 61 6e 64 20 50 | 61 6c 61 74 69 6e 6f 20 |ca and P|alatino |
|00000730| 61 72 65 20 72 65 67 69 | 73 74 65 72 65 64 20 74 |are regi|stered t|
|00000740| 72 61 64 65 6d 61 72 6b | 73 20 6f 66 20 4c 69 6e |rademark|s of Lin|
|00000750| 6f 74 79 70 65 20 43 6f | 6d 70 61 6e 79 2e 0d 49 |otype Co|mpany..I|
|00000760| 6e 74 65 72 6e 65 74 20 | 69 73 20 61 20 74 72 61 |nternet |is a tra|
|00000770| 64 65 6d 61 72 6b 20 6f | 66 20 44 69 67 69 74 61 |demark o|f Digita|
|00000780| 6c 20 45 71 75 69 70 6d | 65 6e 74 20 43 6f 72 70 |l Equipm|ent Corp|
|00000790| 6f 72 61 74 69 6f 6e 2e | 0d 49 54 43 20 5a 61 70 |oration.|.ITC Zap|
|000007a0| 66 20 44 69 6e 67 62 61 | 74 73 20 69 73 20 61 20 |f Dingba|ts is a |
|000007b0| 72 65 67 69 73 74 65 72 | 65 64 20 74 72 61 64 65 |register|ed trade|
|000007c0| 6d 61 72 6b 20 6f 66 20 | 49 6e 74 65 72 6e 61 74 |mark of |Internat|
|000007d0| 69 6f 6e 61 6c 20 54 79 | 70 65 66 61 63 65 20 43 |ional Ty|peface C|
|000007e0| 6f 72 70 6f 72 61 74 69 | 6f 6e 2e 0d 4d 61 63 50 |orporati|on..MacP|
|000007f0| 61 69 6e 74 20 69 73 20 | 61 20 72 65 67 69 73 74 |aint is |a regist|
|00000800| 65 72 65 64 20 74 72 61 | 64 65 6d 61 72 6b 20 6f |ered tra|demark o|
|00000810| 66 20 43 6c 61 72 69 73 | 20 43 6f 72 70 6f 72 61 |f Claris| Corpora|
|00000820| 74 69 6f 6e 2e 0d 4e 75 | 42 75 73 20 69 73 20 61 |tion..Nu|Bus is a|
|00000830| 20 74 72 61 64 65 6d 61 | 72 6b 20 6f 66 20 54 65 | tradema|rk of Te|
|00000840| 78 61 73 20 49 6e 73 74 | 72 75 6d 65 6e 74 73 2e |xas Inst|ruments.|
|00000850| 0d 4d 6f 74 6f 72 6f 6c | 61 20 69 73 20 61 20 72 |.Motorol|a is a r|
|00000860| 65 67 69 73 74 65 72 65 | 64 20 74 72 61 64 65 6d |egistere|d tradem|
|00000870| 61 72 6b 20 6f 66 20 4d | 6f 74 6f 72 6f 6c 61 20 |ark of M|otorola |
|00000880| 43 6f 72 70 6f 72 61 74 | 69 6f 6e 2e 0d 53 69 6d |Corporat|ion..Sim|
|00000890| 75 6c 74 61 6e 65 6f 75 | 73 6c 79 20 70 75 62 6c |ultaneou|sly publ|
|000008a0| 69 73 68 65 64 20 69 6e | 20 74 68 65 20 55 6e 69 |ished in| the Uni|
|000008b0| 74 65 64 20 53 74 61 74 | 65 73 20 61 6e 64 20 43 |ted Stat|es and C|
|000008c0| 61 6e 61 64 61 2e 0d 4c | 49 4d 49 54 45 44 20 57 |anada..L|IMITED W|
|000008d0| 41 52 52 41 4e 54 59 20 | 4f 4e 20 4d 45 44 49 41 |ARRANTY |ON MEDIA|
|000008e0| 20 41 4e 44 20 52 45 50 | 4c 41 43 45 4d 45 4e 54 | AND REP|LACEMENT|
|000008f0| 0d 41 4c 4c 20 49 4d 50 | 4c 49 45 44 20 57 41 52 |.ALL IMP|LIED WAR|
|00000900| 52 41 4e 54 49 45 53 20 | 4f 4e 20 54 48 49 53 20 |RANTIES |ON THIS |
|00000910| 4d 41 4e 55 41 4c 2c 20 | 49 4e 43 4c 55 44 49 4e |MANUAL, |INCLUDIN|
|00000920| 47 20 49 4d 50 4c 49 45 | 44 20 57 41 52 52 41 4e |G IMPLIE|D WARRAN|
|00000930| 54 49 45 53 20 4f 46 20 | 4d 45 52 43 48 41 4e 54 |TIES OF |MERCHANT|
|00000940| 41 42 49 4c 49 54 59 20 | 41 4e 44 20 46 49 54 4e |ABILITY |AND FITN|
|00000950| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|00000960| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 2c 20 41 52 |ULAR PUR|POSE, AR|
|00000970| 45 20 4c 49 4d 49 54 45 | 44 20 49 4e 20 44 55 52 |E LIMITE|D IN DUR|
|00000980| 41 54 49 4f 4e 20 54 4f | 20 4e 49 4e 45 54 59 20 |ATION TO| NINETY |
|00000990| 28 39 30 29 20 44 41 59 | 53 20 46 52 4f 4d 20 54 |(90) DAY|S FROM T|
|000009a0| 48 45 20 44 41 54 45 20 | 4f 46 20 54 48 45 20 4f |HE DATE |OF THE O|
|000009b0| 52 49 47 49 4e 41 4c 20 | 52 45 54 41 49 4c 20 50 |RIGINAL |RETAIL P|
|000009c0| 55 52 43 48 41 53 45 20 | 4f 46 20 54 48 49 53 20 |URCHASE |OF THIS |
|000009d0| 50 52 4f 44 55 43 54 2e | 0d 45 76 65 6e 20 74 68 |PRODUCT.|.Even th|
|000009e0| 6f 75 67 68 20 41 70 70 | 6c 65 20 68 61 73 20 72 |ough App|le has r|
|000009f0| 65 76 69 65 77 65 64 20 | 74 68 69 73 20 6d 61 6e |eviewed |this man|
|00000a00| 75 61 6c 2c 20 41 50 50 | 4c 45 20 4d 41 4b 45 53 |ual, APP|LE MAKES|
|00000a10| 20 4e 4f 20 57 41 52 52 | 41 4e 54 59 20 4f 52 20 | NO WARR|ANTY OR |
|00000a20| 52 45 50 52 45 53 45 4e | 54 41 54 49 4f 4e 2c 20 |REPRESEN|TATION, |
|00000a30| 45 49 54 48 45 52 20 45 | 58 50 52 45 53 53 20 4f |EITHER E|XPRESS O|
|00000a40| 52 20 49 4d 50 4c 49 45 | 44 2c 20 57 49 54 48 20 |R IMPLIE|D, WITH |
|00000a50| 52 45 53 50 45 43 54 20 | 54 4f 20 54 48 49 53 20 |RESPECT |TO THIS |
|00000a60| 4d 41 4e 55 41 4c 2c 20 | 49 54 53 20 51 55 41 4c |MANUAL, |ITS QUAL|
|00000a70| 49 54 59 2c 20 41 43 43 | 55 52 41 43 59 2c 20 4d |ITY, ACC|URACY, M|
|00000a80| 45 52 43 48 41 4e 54 41 | 42 49 4c 49 54 59 2c 20 |ERCHANTA|BILITY, |
|00000a90| 4f 52 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |OR FITNE|SS FOR A|
|00000aa0| 20 50 41 52 54 49 43 55 | 4c 41 52 20 50 55 52 50 | PARTICU|LAR PURP|
|00000ab0| 4f 53 45 2e 20 41 53 20 | 41 20 52 45 53 55 4c 54 |OSE. AS |A RESULT|
|00000ac0| 2c 20 54 48 49 53 20 4d | 41 4e 55 41 4c 20 49 53 |, THIS M|ANUAL IS|
|00000ad0| 20 53 4f 4c 44 20 d2 41 | 53 20 49 53 2c d3 20 41 | SOLD .A|S IS,. A|
|00000ae0| 4e 44 20 59 4f 55 2c 20 | 54 48 45 20 50 55 52 43 |ND YOU, |THE PURC|
|00000af0| 48 41 53 45 52 2c 20 41 | 52 45 20 41 53 53 55 4d |HASER, A|RE ASSUM|
|00000b00| 49 4e 47 20 54 48 45 20 | 45 4e 54 49 52 45 20 52 |ING THE |ENTIRE R|
|00000b10| 49 53 4b 20 41 53 20 54 | 4f 20 49 54 53 20 51 55 |ISK AS T|O ITS QU|
|00000b20| 41 4c 49 54 59 20 41 4e | 44 20 41 43 43 55 52 41 |ALITY AN|D ACCURA|
|00000b30| 43 59 2e 0d 49 4e 20 4e | 4f 20 45 56 45 4e 54 20 |CY..IN N|O EVENT |
|00000b40| 57 49 4c 4c 20 41 50 50 | 4c 45 20 42 45 20 4c 49 |WILL APP|LE BE LI|
|00000b50| 41 42 4c 45 20 46 4f 52 | 20 44 49 52 45 43 54 2c |ABLE FOR| DIRECT,|
|00000b60| 20 49 4e 44 49 52 45 43 | 54 2c 20 53 50 45 43 49 | INDIREC|T, SPECI|
|00000b70| 41 4c 2c 20 49 4e 43 49 | 44 45 4e 54 41 4c 2c 20 |AL, INCI|DENTAL, |
|00000b80| 4f 52 20 43 4f 4e 53 45 | 51 55 45 4e 54 49 41 4c |OR CONSE|QUENTIAL|
|00000b90| 20 44 41 4d 41 47 45 53 | 20 52 45 53 55 4c 54 49 | DAMAGES| RESULTI|
|00000ba0| 4e 47 20 46 52 4f 4d 20 | 41 4e 59 20 44 45 46 45 |NG FROM |ANY DEFE|
|00000bb0| 43 54 20 4f 52 20 49 4e | 41 43 43 55 52 41 43 59 |CT OR IN|ACCURACY|
|00000bc0| 20 49 4e 20 54 48 49 53 | 20 4d 41 4e 55 41 4c 2c | IN THIS| MANUAL,|
|00000bd0| 20 65 76 65 6e 20 69 66 | 20 61 64 76 69 73 65 64 | even if| advised|
|00000be0| 20 6f 66 20 74 68 65 20 | 70 6f 73 73 69 62 69 6c | of the |possibil|
|00000bf0| 69 74 79 20 6f 66 20 73 | 75 63 68 20 64 61 6d 61 |ity of s|uch dama|
|00000c00| 67 65 73 2e 0d 54 48 45 | 20 57 41 52 52 41 4e 54 |ges..THE| WARRANT|
|00000c10| 59 20 41 4e 44 20 52 45 | 4d 45 44 49 45 53 20 53 |Y AND RE|MEDIES S|
|00000c20| 45 54 20 46 4f 52 54 48 | 20 41 42 4f 56 45 20 41 |ET FORTH| ABOVE A|
|00000c30| 52 45 20 45 58 43 4c 55 | 53 49 56 45 20 41 4e 44 |RE EXCLU|SIVE AND|
|00000c40| 20 49 4e 20 4c 49 45 55 | 20 4f 46 20 41 4c 4c 20 | IN LIEU| OF ALL |
|00000c50| 4f 54 48 45 52 53 2c 20 | 4f 52 41 4c 20 4f 52 20 |OTHERS, |ORAL OR |
|00000c60| 57 52 49 54 54 45 4e 2c | 20 45 58 50 52 45 53 53 |WRITTEN,| EXPRESS|
|00000c70| 20 4f 52 20 49 4d 50 4c | 49 45 44 2e 20 4e 6f 20 | OR IMPL|IED. No |
|00000c80| 41 70 70 6c 65 20 64 65 | 61 6c 65 72 2c 20 61 67 |Apple de|aler, ag|
|00000c90| 65 6e 74 2c 20 6f 72 20 | 65 6d 70 6c 6f 79 65 65 |ent, or |employee|
|00000ca0| 20 69 73 20 61 75 74 68 | 6f 72 69 7a 65 64 20 74 | is auth|orized t|
|00000cb0| 6f 20 6d 61 6b 65 20 61 | 6e 79 20 6d 6f 64 69 66 |o make a|ny modif|
|00000cc0| 69 63 61 74 69 6f 6e 2c | 20 65 78 74 65 6e 73 69 |ication,| extensi|
|00000cd0| 6f 6e 2c 20 6f 72 20 61 | 64 64 69 74 69 6f 6e 20 |on, or a|ddition |
|00000ce0| 74 6f 20 74 68 69 73 20 | 77 61 72 72 61 6e 74 79 |to this |warranty|
|00000cf0| 2e 0d 53 6f 6d 65 20 73 | 74 61 74 65 73 20 64 6f |..Some s|tates do|
|00000d00| 20 6e 6f 74 20 61 6c 6c | 6f 77 20 74 68 65 20 65 | not all|ow the e|
|00000d10| 78 63 6c 75 73 69 6f 6e | 20 6f 72 20 6c 69 6d 69 |xclusion| or limi|
|00000d20| 74 61 74 69 6f 6e 20 6f | 66 20 69 6d 70 6c 69 65 |tation o|f implie|
|00000d30| 64 20 77 61 72 72 61 6e | 74 69 65 73 20 6f 72 20 |d warran|ties or |
|00000d40| 6c 69 61 62 69 6c 69 74 | 79 20 66 6f 72 20 69 6e |liabilit|y for in|
|00000d50| 63 69 64 65 6e 74 61 6c | 20 6f 72 20 63 6f 6e 73 |cidental| or cons|
|00000d60| 65 71 75 65 6e 74 69 61 | 6c 20 64 61 6d 61 67 65 |equentia|l damage|
|00000d70| 73 2c 20 73 6f 20 74 68 | 65 20 61 62 6f 76 65 20 |s, so th|e above |
|00000d80| 6c 69 6d 69 74 61 74 69 | 6f 6e 20 6f 72 20 65 78 |limitati|on or ex|
|00000d90| 63 6c 75 73 69 6f 6e 20 | 6d 61 79 20 6e 6f 74 20 |clusion |may not |
|00000da0| 61 70 70 6c 79 20 74 6f | 20 79 6f 75 2e 20 54 68 |apply to| you. Th|
|00000db0| 69 73 20 77 61 72 72 61 | 6e 74 79 20 67 69 76 65 |is warra|nty give|
|00000dc0| 73 20 79 6f 75 20 73 70 | 65 63 69 66 69 63 20 6c |s you sp|ecific l|
|00000dd0| 65 67 61 6c 20 72 69 67 | 68 74 73 2c 20 61 6e 64 |egal rig|hts, and|
|00000de0| 20 79 6f 75 20 6d 61 79 | 20 61 6c 73 6f 20 68 61 | you may| also ha|
|00000df0| 76 65 20 6f 74 68 65 72 | 20 72 69 67 68 74 73 20 |ve other| rights |
|00000e00| 77 68 69 63 68 20 76 61 | 72 79 20 66 72 6f 6d 20 |which va|ry from |
|00000e10| 73 74 61 74 65 20 74 6f | 20 73 74 61 74 65 2e 0d |state to| state..|
|00000e20| 4c 69 73 74 69 6e 67 20 | 31 2d 30 0d 54 61 62 6c |Listing |1-0.Tabl|
|00000e30| 65 20 31 2d 30 0d 43 6f | 6e 74 65 6e 74 73 0d 43 |e 1-0.Co|ntents.C|
|00000e40| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 20 4d 61 6e 61 |olor Pic|ker Mana|
|00000e50| 67 65 72 0d 43 6f 6e 74 | 65 6e 74 73 0d 41 62 6f |ger.Cont|ents.Abo|
|00000e60| 75 74 20 74 68 65 20 43 | 6f 6c 6f 72 20 50 69 63 |ut the C|olor Pic|
|00000e70| 6b 65 72 20 4d 61 6e 61 | 67 65 72 14 14 31 2d 35 |ker Mana|ger..1-5|
|00000e80| 0d 43 6f 6c 6f 72 20 50 | 69 63 6b 65 72 20 44 69 |.Color P|icker Di|
|00000e90| 61 6c 6f 67 20 42 6f 78 | 65 73 14 14 31 2d 35 0d |alog Box|es..1-5.|
|00000ea0| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 73 20 61 73 |Color Pi|ckers as|
|00000eb0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 14 14 31 2d 37 | Compone|nts..1-7|
|00000ec0| 0d 43 6f 6c 6f 72 53 79 | 6e 63 20 43 6f 6c 6f 72 |.ColorSy|nc Color|
|00000ed0| 73 20 61 6e 64 20 74 68 | 65 20 43 6f 6c 6f 72 20 |s and th|e Color |
|00000ee0| 50 69 63 6b 65 72 20 4d | 61 6e 61 67 65 72 14 14 |Picker M|anager..|
|00000ef0| 31 2d 38 0d 55 73 69 6e | 67 20 74 68 65 20 43 6f |1-8.Usin|g the Co|
|00000f00| 6c 6f 72 20 50 69 63 6b | 65 72 20 4d 61 6e 61 67 |lor Pick|er Manag|
|00000f10| 65 72 14 14 31 2d 38 0d | 55 73 69 6e 67 20 74 68 |er..1-8.|Using th|
|00000f20| 65 20 53 74 61 6e 64 61 | 72 64 20 44 69 61 6c 6f |e Standa|rd Dialo|
|00000f30| 67 20 42 6f 78 20 66 6f | 72 20 43 6f 6c 6f 72 20 |g Box fo|r Color |
|00000f40| 50 69 63 6b 65 72 73 14 | 14 31 2d 39 0d 44 65 66 |Pickers.|.1-9.Def|
|00000f50| 69 6e 69 6e 67 20 61 6e | 20 45 76 65 6e 74 20 46 |ining an| Event F|
|00000f60| 69 6c 74 65 72 20 46 75 | 6e 63 74 69 6f 6e 14 14 |ilter Fu|nction..|
|00000f70| 31 2d 31 30 0d 44 65 66 | 69 6e 69 6e 67 20 61 20 |1-10.Def|ining a |
|00000f80| 43 6f 6c 6f 72 20 43 68 | 61 6e 67 65 64 20 46 75 |Color Ch|anged Fu|
|00000f90| 6e 63 74 69 6f 6e 14 14 | 31 2d 31 31 0d 55 73 69 |nction..|1-11.Usi|
|00000fa0| 6e 67 20 43 75 73 74 6f | 6d 69 7a 65 64 20 44 69 |ng Custo|mized Di|
|00000fb0| 61 6c 6f 67 20 42 6f 78 | 65 73 20 66 6f 72 20 43 |alog Box|es for C|
|00000fc0| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 73 14 14 31 2d |olor Pic|kers..1-|
|00000fd0| 31 32 0d 43 72 65 61 74 | 69 6e 67 20 44 69 61 6c |12.Creat|ing Dial|
|00000fe0| 6f 67 20 42 6f 78 65 73 | 20 66 6f 72 20 43 6f 6c |og Boxes| for Col|
|00000ff0| 6f 72 20 50 69 63 6b 65 | 72 73 14 14 31 2d 31 32 |or Picke|rs..1-12|
|00001000| 0d 53 65 74 74 69 6e 67 | 20 43 6f 6c 6f 72 73 20 |.Setting| Colors |
|00001010| 46 6f 72 20 61 6e 64 20 | 47 65 74 74 69 6e 67 20 |For and |Getting |
|00001020| 43 6f 6c 6f 72 73 20 46 | 72 6f 6d 20 74 68 65 20 |Colors F|rom the |
|00001030| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 14 14 31 2d |Color Pi|cker..1-|
|00001040| 31 36 0d 48 61 6e 64 6c | 69 6e 67 20 45 76 65 6e |16.Handl|ing Even|
|00001050| 74 73 20 69 6e 20 61 20 | 43 6f 6c 6f 72 20 50 69 |ts in a |Color Pi|
|00001060| 63 6b 65 72 20 44 69 61 | 6c 6f 67 20 42 6f 78 14 |cker Dia|log Box.|
|00001070| 14 31 2d 31 38 0d 48 61 | 6e 64 6c 69 6e 67 20 45 |.1-18.Ha|ndling E|
|00001080| 76 65 6e 74 73 20 69 6e | 20 74 68 65 20 45 64 69 |vents in| the Edi|
|00001090| 74 20 4d 65 6e 75 14 14 | 31 2d 32 30 0d 53 65 6e |t Menu..|1-20.Sen|
|000010a0| 64 69 6e 67 20 45 76 65 | 6e 74 20 46 6f 72 65 63 |ding Eve|nt Forec|
|000010b0| 61 73 74 65 72 73 20 74 | 6f 20 74 68 65 20 43 6f |asters t|o the Co|
|000010c0| 6c 6f 72 20 50 69 63 6b | 65 72 14 14 31 2d 32 33 |lor Pick|er..1-23|
|000010d0| 0d 53 65 74 74 69 6e 67 | 20 74 68 65 20 44 65 73 |.Setting| the Des|
|000010e0| 74 69 6e 61 74 69 6f 6e | 20 50 72 6f 66 69 6c 65 |tination| Profile|
|000010f0| 14 14 31 2d 32 34 0d 43 | 6f 6e 74 72 6f 6c 6c 69 |..1-24.C|ontrolli|
|00001100| 6e 67 20 74 68 65 20 48 | 65 6c 70 20 42 61 6c 6c |ng the H|elp Ball|
|00001110| 6f 6f 6e 73 20 66 6f 72 | 20 61 20 43 6f 6c 6f 72 |oons for| a Color|
|00001120| 20 50 69 63 6b 65 72 d5 | 73 20 44 69 61 6c 6f 67 | Picker.|s Dialog|
|00001130| 20 42 6f 78 14 14 31 2d | 32 35 0d 57 72 69 74 69 | Box..1-|25.Writi|
|00001140| 6e 67 20 59 6f 75 72 20 | 4f 77 6e 20 43 6f 6c 6f |ng Your |Own Colo|
|00001150| 72 20 50 69 63 6b 65 72 | 73 14 14 31 2d 32 36 0d |r Picker|s..1-26.|
|00001160| 43 72 65 61 74 69 6e 67 | 20 61 20 43 6f 6d 70 6f |Creating| a Compo|
|00001170| 6e 65 6e 74 20 52 65 73 | 6f 75 72 63 65 20 66 6f |nent Res|ource fo|
|00001180| 72 20 61 20 43 6f 6c 6f | 72 20 50 69 63 6b 65 72 |r a Colo|r Picker|
|00001190| 14 14 31 2d 32 37 0d 44 | 69 73 70 61 74 63 68 69 |..1-27.D|ispatchi|
|000011a0| 6e 67 20 74 6f 20 43 6f | 6c 6f 72 20 50 69 63 6b |ng to Co|lor Pick|
|000011b0| 65 72 2d 44 65 66 69 6e | 65 64 20 52 6f 75 74 69 |er-Defin|ed Routi|
|000011c0| 6e 65 73 14 14 31 2d 32 | 38 0d 49 6e 69 74 69 61 |nes..1-2|8.Initia|
|000011d0| 6c 69 7a 69 6e 67 20 59 | 6f 75 72 20 43 6f 6c 6f |lizing Y|our Colo|
|000011e0| 72 20 50 69 63 6b 65 72 | 14 14 31 2d 33 31 0d 48 |r Picker|..1-31.H|
|000011f0| 61 6e 64 6c 69 6e 67 20 | 45 76 65 6e 74 73 20 66 |andling |Events f|
|00001200| 6f 72 20 59 6f 75 72 20 | 43 6f 6c 6f 72 20 50 69 |or Your |Color Pi|
|00001210| 63 6b 65 72 14 14 31 2d | 33 34 0d 52 65 74 75 72 |cker..1-|34.Retur|
|00001220| 6e 69 6e 67 20 61 6e 64 | 20 53 65 74 74 69 6e 67 |ning and| Setting|
|00001230| 20 43 6f 6c 6f 72 20 50 | 69 63 6b 65 72 20 49 6e | Color P|icker In|
|00001240| 66 6f 72 6d 61 74 69 6f | 6e 14 14 31 2d 33 37 0d |formatio|n..1-37.|
|00001250| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 4d 61 6e |Color Pi|cker Man|
|00001260| 61 67 65 72 20 52 65 66 | 65 72 65 6e 63 65 14 14 |ager Ref|erence..|
|00001270| 31 2d 34 32 0d 43 6f 6e | 73 74 61 6e 74 73 20 61 |1-42.Con|stants a|
|00001280| 6e 64 20 44 61 74 61 20 | 53 74 72 75 63 74 75 72 |nd Data |Structur|
|00001290| 65 73 14 14 31 2d 34 32 | 0d 50 69 63 6b 65 72 20 |es..1-42|.Picker |
|000012a0| 41 63 74 69 6f 6e 73 14 | 14 31 2d 34 32 0d 43 6f |Actions.|.1-42.Co|
|000012b0| 6c 6f 72 20 54 79 70 65 | 73 14 14 31 2d 34 33 0d |lor Type|s..1-43.|
|000012c0| 45 64 69 74 20 4d 65 6e | 75 20 4f 70 65 72 61 74 |Edit Men|u Operat|
|000012d0| 69 6f 6e 73 14 14 31 2d | 34 34 0d 49 74 65 6d 20 |ions..1-|44.Item |
|000012e0| 48 69 74 20 4d 6f 64 69 | 66 69 65 72 73 14 14 31 |Hit Modi|fiers..1|
|000012f0| 2d 34 34 0d 44 69 61 6c | 6f 67 20 50 6c 61 63 65 |-44.Dial|og Place|
|00001300| 6d 65 6e 74 20 53 70 65 | 63 69 66 69 65 72 73 14 |ment Spe|cifiers.|
|00001310| 14 31 2d 34 35 0d 50 69 | 63 6b 65 72 20 46 6c 61 |.1-45.Pi|cker Fla|
|00001320| 67 73 14 14 31 2d 34 35 | 0d 50 69 63 6b 65 72 20 |gs..1-45|.Picker |
|00001330| 41 74 74 72 69 62 75 74 | 65 73 14 14 31 2d 34 36 |Attribut|es..1-46|
|00001340| 0d 45 76 65 6e 74 20 46 | 6f 72 65 63 61 73 74 65 |.Event F|orecaste|
|00001350| 72 73 14 14 31 2d 34 37 | 0d 52 65 71 75 65 73 74 |rs..1-47|.Request|
|00001360| 20 43 6f 64 65 73 14 14 | 31 2d 34 38 0d 50 69 63 | Codes..|1-48.Pic|
|00001370| 6b 65 72 20 43 6f 6c 6f | 72 20 53 74 72 75 63 74 |ker Colo|r Struct|
|00001380| 75 72 65 14 14 31 2d 35 | 30 0d 50 69 63 6b 65 72 |ure..1-5|0.Picker|
|00001390| 20 53 74 72 75 63 74 75 | 72 65 14 14 31 2d 35 31 | Structu|re..1-51|
|000013a0| 0d 50 69 63 6b 65 72 20 | 49 63 6f 6e 20 53 74 72 |.Picker |Icon Str|
|000013b0| 75 63 74 75 72 65 14 14 | 31 2d 35 31 0d 50 69 63 |ucture..|1-51.Pic|
|000013c0| 6b 65 72 20 49 6e 69 74 | 69 61 6c 69 7a 61 74 69 |ker Init|ializati|
|000013d0| 6f 6e 20 53 74 72 75 63 | 74 75 72 65 14 14 31 2d |on Struc|ture..1-|
|000013e0| 35 32 0d 45 76 65 6e 74 | 20 46 69 6c 74 65 72 20 |52.Event| Filter |
|000013f0| 46 75 6e 63 74 69 6f 6e | 14 14 31 2d 35 33 0d 43 |Function|..1-53.C|
|00001400| 6f 6c 6f 72 2d 43 68 61 | 6e 67 65 64 20 46 75 6e |olor-Cha|nged Fun|
|00001410| 63 74 69 6f 6e 14 14 31 | 2d 35 33 0d 45 64 69 74 |ction..1|-53.Edit|
|00001420| 20 4d 65 6e 75 20 49 74 | 65 6d 73 20 53 74 72 75 | Menu It|ems Stru|
|00001430| 63 74 75 72 65 14 14 31 | 2d 35 33 0d 45 64 69 74 |cture..1|-53.Edit|
|00001440| 20 4d 65 6e 75 20 53 74 | 61 74 65 20 53 74 72 75 | Menu St|ate Stru|
|00001450| 63 74 75 72 65 14 14 31 | 2d 35 34 0d 50 69 63 6b |cture..1|-54.Pick|
|00001460| 43 6f 6c 6f 72 20 50 61 | 72 61 6d 65 74 65 72 20 |Color Pa|rameter |
|00001470| 42 6c 6f 63 6b 14 14 31 | 2d 35 34 0d 53 79 73 74 |Block..1|-54.Syst|
|00001480| 65 6d 2d 4f 77 6e 65 64 | 20 44 69 61 6c 6f 67 20 |em-Owned| Dialog |
|00001490| 42 6f 78 20 53 74 72 75 | 63 74 75 72 65 14 14 31 |Box Stru|cture..1|
|000014a0| 2d 35 36 0d 50 69 63 6b | 65 72 2d 4f 77 6e 65 64 |-56.Pick|er-Owned|
|000014b0| 20 44 69 61 6c 6f 67 20 | 42 6f 78 20 53 74 72 75 | Dialog |Box Stru|
|000014c0| 63 74 75 72 65 14 14 31 | 2d 35 38 0d 41 70 70 6c |cture..1|-58.Appl|
|000014d0| 69 63 61 74 69 6f 6e 2d | 4f 77 6e 65 64 20 44 69 |ication-|Owned Di|
|000014e0| 61 6c 6f 67 20 42 6f 78 | 20 53 74 72 75 63 74 75 |alog Box| Structu|
|000014f0| 72 65 14 14 31 2d 35 38 | 0d 45 76 65 6e 74 20 44 |re..1-58|.Event D|
|00001500| 61 74 61 20 53 74 72 75 | 63 74 75 72 65 14 14 31 |ata Stru|cture..1|
|00001510| 2d 35 39 0d 45 64 69 74 | 69 6e 67 20 44 61 74 61 |-59.Edit|ing Data|
|00001520| 20 53 74 72 75 63 74 75 | 72 65 14 14 31 2d 36 31 | Structu|re..1-61|
|00001530| 0d 49 74 65 6d 20 48 69 | 74 20 53 74 72 75 63 74 |.Item Hi|t Struct|
|00001540| 75 72 65 14 14 31 2d 36 | 33 0d 48 65 6c 70 20 49 |ure..1-6|3.Help I|
|00001550| 74 65 6d 20 53 74 72 75 | 63 74 75 72 65 14 14 31 |tem Stru|cture..1|
|00001560| 2d 36 34 0d 53 6d 61 6c | 6c 46 72 61 63 74 20 54 |-64.Smal|lFract T|
|00001570| 79 70 65 14 14 31 2d 36 | 35 0d 48 53 56 20 43 6f |ype..1-6|5.HSV Co|
|00001580| 6c 6f 72 20 53 74 72 75 | 63 74 75 72 65 14 14 31 |lor Stru|cture..1|
|00001590| 2d 36 35 0d 48 53 4c 20 | 43 6f 6c 6f 72 20 53 74 |-65.HSL |Color St|
|000015a0| 72 75 63 74 75 72 65 14 | 14 31 2d 36 35 0d 43 4d |ructure.|.1-65.CM|
|000015b0| 59 20 43 6f 6c 6f 72 20 | 53 74 72 75 63 74 75 72 |Y Color |Structur|
|000015c0| 65 14 14 31 2d 36 36 0d | 43 6f 6c 6f 72 20 50 69 |e..1-66.|Color Pi|
|000015d0| 63 6b 65 72 20 4d 61 6e | 61 67 65 72 20 46 75 6e |cker Man|ager Fun|
|000015e0| 63 74 69 6f 6e 73 14 14 | 31 2d 36 36 0d 55 73 69 |ctions..|1-66.Usi|
|000015f0| 6e 67 20 74 68 65 20 53 | 74 61 6e 64 61 72 64 20 |ng the S|tandard |
|00001600| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 44 69 61 |Color Pi|cker Dia|
|00001610| 6c 6f 67 20 42 6f 78 14 | 14 31 2d 36 37 0d 43 72 |log Box.|.1-67.Cr|
|00001620| 65 61 74 69 6e 67 20 61 | 20 43 75 73 74 6f 6d 20 |eating a| Custom |
|00001630| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 44 69 61 |Color Pi|cker Dia|
|00001640| 6c 6f 67 20 42 6f 78 14 | 14 31 2d 36 38 0d 48 61 |log Box.|.1-68.Ha|
|00001650| 6e 64 6c 69 6e 67 20 45 | 76 65 6e 74 73 20 69 6e |ndling E|vents in|
|00001660| 20 61 20 43 75 73 74 6f | 6d 20 43 6f 6c 6f 72 20 | a Custo|m Color |
|00001670| 50 69 63 6b 65 72 20 44 | 69 61 6c 6f 67 20 42 6f |Picker D|ialog Bo|
|00001680| 78 14 14 31 2d 37 33 0d | 47 65 74 74 69 6e 67 20 |x..1-73.|Getting |
|00001690| 43 6f 6c 6f 72 73 20 46 | 72 6f 6d 20 61 6e 64 20 |Colors F|rom and |
|000016a0| 53 65 74 74 69 6e 67 20 | 43 6f 6c 6f 72 73 20 66 |Setting |Colors f|
|000016b0| 6f 72 20 61 20 43 75 73 | 74 6f 6d 20 43 6f 6c 6f |or a Cus|tom Colo|
|000016c0| 72 20 50 69 63 6b 65 72 | 20 44 69 61 6c 6f 67 20 |r Picker| Dialog |
|000016d0| 42 6f 78 14 14 31 2d 37 | 35 0d 47 65 74 74 69 6e |Box..1-7|5.Gettin|
|000016e0| 67 20 74 68 65 20 4d 65 | 6e 75 20 53 74 61 74 65 |g the Me|nu State|
|000016f0| 20 61 6e 64 20 74 68 65 | 20 48 65 6c 70 20 42 61 | and the| Help Ba|
|00001700| 6c 6c 6f 6f 6e 73 20 66 | 6f 72 20 61 20 43 6f 6c |lloons f|or a Col|
|00001710| 6f 72 20 50 69 63 6b 65 | 72 14 14 31 2d 37 36 0d |or Picke|r..1-76.|
|00001720| 53 65 74 74 69 6e 67 20 | 61 6e 64 20 47 65 74 74 |Setting |and Gett|
|00001730| 69 6e 67 20 43 6f 6c 6f | 72 2d 4d 61 74 63 68 69 |ing Colo|r-Matchi|
|00001740| 6e 67 20 50 72 6f 66 69 | 6c 65 73 20 66 6f 72 20 |ng Profi|les for |
|00001750| 61 20 43 6f 6c 6f 72 20 | 50 69 63 6b 65 72 14 14 |a Color |Picker..|
|00001760| 31 2d 37 38 0d 43 6f 6e | 76 65 72 74 69 6e 67 20 |1-78.Con|verting |
|00001770| 43 6f 6c 6f 72 73 20 41 | 6d 6f 6e 67 20 43 6f 6c |Colors A|mong Col|
|00001780| 6f 72 20 4d 6f 64 65 6c | 73 14 14 31 2d 37 39 0d |or Model|s..1-79.|
|00001790| 43 6f 6e 76 65 72 74 69 | 6e 67 20 42 65 74 77 65 |Converti|ng Betwe|
|000017a0| 65 6e 20 53 6d 61 6c 6c | 46 72 61 63 74 20 61 6e |en Small|Fract an|
|000017b0| 64 20 46 69 78 65 64 20 | 56 61 6c 75 65 73 14 14 |d Fixed |Values..|
|000017c0| 31 2d 38 32 0d 41 70 70 | 6c 69 63 61 74 69 6f 6e |1-82.App|lication|
|000017d0| 2d 44 65 66 69 6e 65 64 | 20 46 75 6e 63 74 69 6f |-Defined| Functio|
|000017e0| 6e 73 14 14 31 2d 38 32 | 0d 48 61 6e 64 6c 69 6e |ns..1-82|.Handlin|
|000017f0| 67 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 2d 44 69 |g Applic|ation-Di|
|00001800| 72 65 63 74 65 64 20 45 | 76 65 6e 74 73 20 69 6e |rected E|vents in|
|00001810| 20 61 20 43 6f 6c 6f 72 | 20 50 69 63 6b 65 72 14 | a Color| Picker.|
|00001820| 14 31 2d 38 33 0d 43 68 | 61 6e 67 69 6e 67 20 43 |.1-83.Ch|anging C|
|00001830| 6f 6c 6f 72 73 20 69 6e | 20 61 20 44 6f 63 75 6d |olors in| a Docum|
|00001840| 65 6e 74 14 14 31 2d 38 | 33 0d 43 6f 6c 6f 72 20 |ent..1-8|3.Color |
|00001850| 50 69 63 6b 65 72 2d 44 | 65 66 69 6e 65 64 20 46 |Picker-D|efined F|
|00001860| 75 6e 63 74 69 6f 6e 73 | 14 14 31 2d 38 34 0d 53 |unctions|..1-84.S|
|00001870| 65 74 74 69 6e 67 20 55 | 70 20 61 20 43 6f 6c 6f |etting U|p a Colo|
|00001880| 72 20 50 69 63 6b 65 72 | 14 14 31 2d 38 35 0d 52 |r Picker|..1-85.R|
|00001890| 65 73 70 6f 6e 64 69 6e | 67 20 74 6f 20 52 65 71 |espondin|g to Req|
|000018a0| 75 65 73 74 73 20 74 6f | 20 52 65 74 75 72 6e 20 |uests to| Return |
|000018b0| 61 6e 64 20 53 65 74 20 | 43 6f 6c 6f 72 20 50 69 |and Set |Color Pi|
|000018c0| 63 6b 65 72 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |cker Inf|ormation|
|000018d0| 14 14 31 2d 38 38 0d 52 | 65 73 70 6f 6e 64 69 6e |..1-88.R|espondin|
|000018e0| 67 20 74 6f 20 45 76 65 | 6e 74 73 20 69 6e 20 61 |g to Eve|nts in a|
|000018f0| 20 43 6f 6c 6f 72 20 50 | 69 63 6b 65 72 14 14 31 | Color P|icker..1|
|00001900| 2d 39 35 0d 53 75 6d 6d | 61 72 79 20 6f 66 20 74 |-95.Summ|ary of t|
|00001910| 68 65 20 43 6f 6c 6f 72 | 20 50 69 63 6b 65 72 20 |he Color| Picker |
|00001920| 4d 61 6e 61 67 65 72 14 | 14 31 2d 39 39 0d 0d 43 |Manager.|.1-99..C|
|00001930| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 20 4d 61 6e 61 |olor Pic|ker Mana|
|00001940| 67 65 72 0d 0d 54 68 69 | 73 20 63 68 61 70 74 65 |ger..Thi|s chapte|
|00001950| 72 20 64 65 73 63 72 69 | 62 65 73 20 68 6f 77 20 |r descri|bes how |
|00001960| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001970| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 73 74 61 | can use| the sta|
|00001980| 6e 64 61 72 64 20 75 73 | 65 72 20 69 6e 74 65 72 |ndard us|er inter|
|00001990| 66 61 63 65 20 66 6f 72 | 20 73 6f 6c 69 63 69 74 |face for| solicit|
|000019a0| 69 6e 67 20 63 6f 6c 6f | 72 20 63 68 6f 69 63 65 |ing colo|r choice|
|000019b0| 73 20 66 72 6f 6d 20 75 | 73 65 72 73 2e 20 54 68 |s from u|sers. Th|
|000019c0| 65 20 43 6f 6c 6f 72 20 | 50 69 63 6b 65 72 20 4d |e Color |Picker M|
|000019d0| 61 6e 61 67 65 72 20 73 | 75 70 70 6c 69 65 73 20 |anager s|upplies |
|000019e0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |the func|tions th|
|000019f0| 61 74 20 70 72 6f 76 69 | 64 65 20 79 6f 75 72 20 |at provi|de your |
|00001a00| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |applicat|ion with|
|00001a10| 20 74 68 69 73 20 75 73 | 65 72 20 69 6e 74 65 72 | this us|er inter|
|00001a20| 66 61 63 65 2e 20 59 6f | 75 72 20 61 70 70 6c 69 |face. Yo|ur appli|
|00001a30| 63 61 74 69 6f 6e 20 63 | 61 6e 20 75 73 65 20 74 |cation c|an use t|
|00001a40| 68 65 73 65 20 66 75 6e | 63 74 69 6f 6e 73 20 74 |hese fun|ctions t|
|00001a50| 6f 20 64 69 73 70 6c 61 | 79 2c 20 72 65 73 70 6f |o displa|y, respo|
|00001a60| 6e 64 20 74 6f 20 65 76 | 65 6e 74 73 20 77 69 74 |nd to ev|ents wit|
|00001a70| 68 69 6e 2c 20 61 6e 64 | 20 63 6c 6f 73 65 20 61 |hin, and| close a|
|00001a80| 20 63 6f 6c 6f 72 20 70 | 69 63 6b 65 72 20 64 69 | color p|icker di|
|00001a90| 61 6c 6f 67 20 62 6f 78 | 2e 20 54 68 65 20 43 6f |alog box|. The Co|
|00001aa0| 6c 6f 72 20 50 69 63 6b | 65 72 20 4d 61 6e 61 67 |lor Pick|er Manag|
|00001ab0| 65 72 20 70 72 6f 76 69 | 64 65 73 20 73 74 61 6e |er provi|des stan|
|00001ac0| 64 61 72 64 20 63 6f 6c | 6f 72 20 70 69 63 6b 65 |dard col|or picke|
|00001ad0| 72 73 20 28 77 68 69 63 | 68 20 61 6c 6c 6f 77 20 |rs (whic|h allow |
|00001ae0| 75 73 65 72 73 20 74 6f | 20 73 65 6c 65 63 74 20 |users to| select |
|00001af0| 63 6f 6c 6f 72 73 20 66 | 72 6f 6d 20 72 61 6e 67 |colors f|rom rang|
|00001b00| 65 73 20 6f 66 20 63 6f | 6c 6f 72 73 29 20 61 6e |es of co|lors) an|
|00001b10| 64 20 61 20 73 74 61 6e | 64 61 72 64 20 64 69 61 |d a stan|dard dia|
|00001b20| 6c 6f 67 20 62 6f 78 20 | 61 6c 6c 6f 77 69 6e 67 |log box |allowing|
|00001b30| 20 75 73 65 72 73 20 74 | 6f 20 69 6e 74 65 72 61 | users t|o intera|
|00001b40| 63 74 20 77 69 74 68 20 | 74 68 65 20 63 6f 6c 6f |ct with |the colo|
|00001b50| 72 20 70 69 63 6b 65 72 | 2e 20 54 68 69 73 20 63 |r picker|. This c|
|00001b60| 68 61 70 74 65 72 20 61 | 6c 73 6f 20 64 65 73 63 |hapter a|lso desc|
|00001b70| 72 69 62 65 73 20 68 6f | 77 20 79 6f 75 72 20 61 |ribes ho|w your a|
|00001b80| 70 70 6c 69 63 61 74 69 | 6f 6e 20 63 61 6e 20 63 |pplicati|on can c|
|00001b90| 72 65 61 74 65 20 69 74 | 73 20 6f 77 6e 20 63 6f |reate it|s own co|
|00001ba0| 6c 6f 72 20 70 69 63 6b | 65 72 73 20 61 6e 64 20 |lor pick|ers and |
|00001bb0| 64 69 61 6c 6f 67 20 62 | 6f 78 65 73 2e 0d 54 68 |dialog b|oxes..Th|
|00001bc0| 65 20 43 6f 6c 6f 72 20 | 50 69 63 6b 65 72 20 4d |e Color |Picker M|
|00001bd0| 61 6e 61 67 65 72 20 76 | 65 72 73 69 6f 6e 20 32 |anager v|ersion 2|
|00001be0| 2e 30 2c 20 64 65 73 63 | 72 69 62 65 64 20 69 6e |.0, desc|ribed in|
|00001bf0| 20 74 68 69 73 20 63 68 | 61 70 74 65 72 2c 20 69 | this ch|apter, i|
|00001c00| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 6f 6e 20 61 |s availa|ble on a|
|00001c10| 6c 6c 20 4d 61 63 69 6e | 74 6f 73 68 20 63 6f 6d |ll Macin|tosh com|
|00001c20| 70 75 74 65 72 73 20 75 | 73 69 6e 67 20 51 75 69 |puters u|sing Qui|
|00001c30| 63 6b 44 72 61 77 20 47 | 58 20 6f 72 20 73 79 73 |ckDraw G|X or sys|
|00001c40| 74 65 6d 20 73 6f 66 74 | 77 61 72 65 20 76 65 72 |tem soft|ware ver|
|00001c50| 73 69 6f 6e 20 37 2e 35 | 2e 20 50 72 65 76 69 6f |sion 7.5|. Previo|
|00001c60| 75 73 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 73 |us versi|ons of s|
|00001c70| 79 73 74 65 6d 20 73 6f | 66 74 77 61 72 65 20 73 |ystem so|ftware s|
|00001c80| 75 70 70 6f 72 74 65 64 | 20 61 6e 20 65 61 72 6c |upported| an earl|
|00001c90| 69 65 72 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ier vers|ion of t|
|00001ca0| 68 65 20 43 6f 6c 6f 72 | 20 50 69 63 6b 65 72 20 |he Color| Picker |
|00001cb0| 4d 61 6e 61 67 65 72 20 | 63 61 6c 6c 65 64 20 74 |Manager |called t|
|00001cc0| 68 65 20 43 6f 6c 6f 72 | 20 50 69 63 6b 65 72 20 |he Color| Picker |
|00001cd0| 50 61 63 6b 61 67 65 2e | 20 54 68 65 20 43 6f 6c |Package.| The Col|
|00001ce0| 6f 72 20 50 69 63 6b 65 | 72 20 4d 61 6e 61 67 65 |or Picke|r Manage|
|00001cf0| 72 20 69 73 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |r is com|patible |
|00001d00| 77 69 74 68 20 74 68 65 | 20 6f 6c 64 65 72 20 43 |with the| older C|
|00001d10| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 20 50 61 63 6b |olor Pic|ker Pack|
|00001d20| 61 67 65 2e 0d 52 65 61 | 64 20 74 68 69 73 20 63 |age..Rea|d this c|
|00001d30| 68 61 70 74 65 72 20 69 | 66 20 79 6f 75 72 20 61 |hapter i|f your a|
|00001d40| 70 70 6c 69 63 61 74 69 | 6f 6e 20 61 6c 6c 6f 77 |pplicati|on allow|
|00001d50| 73 20 75 73 65 72 73 20 | 74 6f 20 70 69 63 6b 20 |s users |to pick |
|00001d60| 61 20 63 6f 6c 6f 72 20 | 66 72 6f 6d 20 61 20 72 |a color |from a r|
|00001d70| 61 6e 67 65 20 6f 66 20 | 63 6f 6c 6f 72 73 2e 20 |ange of |colors. |
|00001d80| 0d 54 68 65 20 43 6f 6c | 6f 72 20 50 69 63 6b 65 |.The Col|or Picke|
|00001d90| 72 20 4d 61 6e 61 67 65 | 72 20 73 75 70 70 6f 72 |r Manage|r suppor|
|00001da0| 74 73 20 74 68 65 20 43 | 6f 6c 6f 72 53 79 6e 63 |ts the C|olorSync|
|00001db0| 20 55 74 69 6c 69 74 69 | 65 73 3b 20 69 66 20 79 | Utiliti|es; if y|
|00001dc0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 6d 61 74 63 68 |ou want |to match|
|00001dd0| 20 63 6f 6c 6f 72 73 20 | 62 65 74 77 65 65 6e 20 | colors |between |
|00001de0| 68 61 72 64 77 61 72 65 | 20 64 65 76 69 63 65 73 |hardware| devices|
|00001df0| 20 73 75 63 68 20 61 73 | 20 73 63 61 6e 6e 65 72 | such as| scanner|
|00001e00| 73 2c 20 64 69 73 70 6c | 61 79 73 2c 20 61 6e 64 |s, displ|ays, and|
|00001e10| 20 70 72 69 6e 74 65 72 | 73 2c 20 79 6f 75 20 73 | printer|s, you s|
|00001e20| 68 6f 75 6c 64 20 72 65 | 61 64 20 74 68 65 20 63 |hould re|ad the c|
|00001e30| 68 61 70 74 65 72 20 d2 | 43 6f 6c 6f 72 53 79 6e |hapter .|ColorSyn|
|00001e40| 63 20 55 74 69 6c 69 74 | 69 65 73 d3 20 69 6e 20 |c Utilit|ies. in |
|00001e50| 74 68 69 73 20 62 6f 6f | 6b 2e 20 42 65 63 61 75 |this boo|k. Becau|
|00001e60| 73 65 20 74 68 65 20 43 | 6f 6c 6f 72 20 50 69 63 |se the C|olor Pic|
|00001e70| 6b 65 72 20 4d 61 6e 61 | 67 65 72 20 70 72 65 73 |ker Mana|ger pres|
|00001e80| 65 6e 74 73 20 63 6f 6c | 6f 72 20 70 69 63 6b 65 |ents col|or picke|
|00001e90| 72 73 20 69 6e 20 61 20 | 64 69 61 6c 6f 67 20 62 |rs in a |dialog b|
|00001ea0| 6f 78 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 62 |ox, you |should b|
|00001eb0| 65 20 66 61 6d 69 6c 69 | 61 72 20 77 69 74 68 20 |e famili|ar with |
|00001ec0| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00001ed0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|00001ee0| 20 63 68 61 70 74 65 72 | 20 d2 44 69 61 6c 6f 67 | chapter| .Dialog|
|00001ef0| 20 4d 61 6e 61 67 65 72 | d3 20 69 6e 20 49 6e 73 | Manager|. in Ins|
|00001f00| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 3a 20 4d |ide Maci|ntosh: M|
|00001f10| 61 63 69 6e 74 6f 73 68 | 20 54 6f 6f 6c 62 6f 78 |acintosh| Toolbox|
|00001f20| 20 45 73 73 65 6e 74 69 | 61 6c 73 2e 20 54 68 65 | Essenti|als. The|
|00001f30| 20 43 6f 6c 6f 72 20 50 | 69 63 6b 65 72 20 4d 61 | Color P|icker Ma|
|00001f40| 6e 61 67 65 72 20 75 73 | 65 73 20 74 68 65 20 43 |nager us|es the C|
|00001f50| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00001f60| 20 74 6f 20 69 6e 74 65 | 72 61 63 74 20 77 69 74 | to inte|ract wit|
|00001f70| 68 20 63 6f 6c 6f 72 20 | 70 69 63 6b 65 72 73 3b |h color |pickers;|
|00001f80| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|00001f90| 63 72 65 61 74 65 20 79 | 6f 75 72 20 6f 77 6e 20 |create y|our own |
|00001fa0| 63 6f 6c 6f 72 20 70 69 | 63 6b 65 72 2c 20 79 6f |color pi|cker, yo|
|00001fb0| 75 20 73 68 6f 75 6c 64 | 20 62 65 20 66 61 6d 69 |u should| be fami|
|00001fc0| 6c 69 61 72 20 77 69 74 | 68 20 74 68 65 20 69 6e |liar wit|h the in|
|00001fd0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 6e 20 74 68 65 |formatio|n in the|
|00001fe0| 20 63 68 61 70 74 65 72 | 20 d2 43 6f 6d 70 6f 6e | chapter| .Compon|
|00001ff0| 65 6e 74 20 4d 61 6e 61 | 67 65 72 d3 20 69 6e 20 |ent Mana|ger. in |
|00002000| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00002010| 3a 20 4d 6f 72 65 20 4d | 61 63 69 6e 74 6f 73 68 |: More M|acintosh|
|00002020| 20 54 6f 6f 6c 62 6f 78 | 2e 20 0d 0d 41 62 6f 75 | Toolbox|. ..Abou|
|00002030| 74 20 74 68 65 20 43 6f | 6c 6f 72 20 50 69 63 6b |t the Co|lor Pick|
|00002040| 65 72 20 4d 61 6e 61 67 | 65 72 0d 0d 54 68 65 20 |er Manag|er..The |
|00002050| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 4d 61 6e |Color Pi|cker Man|
|00002060| 61 67 65 72 20 70 72 6f | 76 69 64 65 73 20 79 6f |ager pro|vides yo|
|00002070| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |ur appli|cation w|
|00002080| 69 74 68 20 61 20 73 74 | 61 6e 64 61 72 64 20 77 |ith a st|andard w|
|00002090| 61 79 20 6f 66 20 61 73 | 6b 69 6e 67 20 74 68 65 |ay of as|king the|
|000020a0| 20 75 73 65 72 20 74 6f | 20 6d 61 6b 65 20 61 20 | user to| make a |
|000020b0| 63 6f 6c 6f 72 20 63 68 | 6f 69 63 65 2e 20 0d 46 |color ch|oice. .F|
|000020c0| 6f 72 20 75 73 65 72 73 | 2c 20 73 79 73 74 65 6d |or users|, system|
|000020d0| 20 73 6f 66 74 77 61 72 | 65 20 70 72 6f 76 69 64 | softwar|e provid|
|000020e0| 65 73 20 73 74 61 6e 64 | 61 72 64 20 63 6f 6c 6f |es stand|ard colo|
|000020f0| 72 20 70 69 63 6b 65 72 | 73 20 74 68 61 74 20 61 |r picker|s that a|
|00002100| 70 70 65 61 72 20 69 6e | 20 61 20 64 69 61 6c 6f |ppear in| a dialo|
|00002110| 67 20 62 6f 78 20 74 68 | 61 74 20 63 61 6e 20 62 |g box th|at can b|
|00002120| 65 20 6d 6f 64 69 66 69 | 65 64 20 62 79 20 79 6f |e modifi|ed by yo|
|00002130| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |ur appli|cation. |
|00002140| 55 73 65 72 73 20 61 64 | 64 20 6e 65 77 20 63 6f |Users ad|d new co|
|00002150| 6c 6f 72 20 70 69 63 6b | 65 72 73 20 62 79 20 69 |lor pick|ers by i|
|00002160| 6e 73 74 61 6c 6c 69 6e | 67 20 74 68 65 6d 20 69 |nstallin|g them i|
|00002170| 6e 20 74 68 65 20 45 78 | 74 65 6e 73 69 6f 6e 73 |n the Ex|tensions|
|00002180| 20 66 6f 6c 64 65 72 20 | 69 6e 20 74 68 65 20 53 | folder |in the S|
|00002190| 79 73 74 65 6d 20 66 6f | 6c 64 65 72 2e 20 54 68 |ystem fo|lder. Th|
|000021a0| 65 20 43 6f 6c 6f 72 20 | 50 69 63 6b 65 72 20 4d |e Color |Picker M|
|000021b0| 61 6e 61 67 65 72 20 61 | 6c 73 6f 20 67 69 76 65 |anager a|lso give|
|000021c0| 73 20 79 6f 75 20 74 68 | 65 20 63 61 70 61 62 69 |s you th|e capabi|
|000021d0| 6c 69 74 79 20 74 6f 20 | 63 72 65 61 74 65 20 63 |lity to |create c|
|000021e0| 6f 6c 6f 72 20 70 69 63 | 6b 65 72 73 20 6f 66 20 |olor pic|kers of |
|000021f0| 79 6f 75 72 20 6f 77 6e | 20 64 65 73 69 67 6e 2e |your own| design.|
|00002200| 0d 0d 43 6f 6c 6f 72 20 | 50 69 63 6b 65 72 20 44 |..Color |Picker D|
|00002210| 69 61 6c 6f 67 20 42 6f | 78 65 73 0d 0d 49 66 20 |ialog Bo|xes..If |
|00002220| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00002230| 20 75 73 65 73 20 74 68 | 65 20 73 74 61 6e 64 61 | uses th|e standa|
|00002240| 72 64 20 64 69 61 6c 6f | 67 20 62 6f 78 20 66 6f |rd dialo|g box fo|
|00002250| 72 20 63 6f 6c 6f 72 20 | 70 69 63 6b 65 72 73 2c |r color |pickers,|
|00002260| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00002270| 6e d5 73 20 69 6e 74 65 | 72 61 63 74 69 6f 6e 20 |n.s inte|raction |
|00002280| 77 69 74 68 20 74 68 65 | 20 43 6f 6c 6f 72 20 50 |with the| Color P|
|00002290| 69 63 6b 65 72 20 4d 61 | 6e 61 67 65 72 20 69 73 |icker Ma|nager is|
|000022a0| 20 73 74 72 61 69 67 68 | 74 66 6f 72 77 61 72 64 | straigh|tforward|
|000022b0| 3a 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |: your a|pplicati|
|000022c0| 6f 6e 20 63 61 6c 6c 73 | 20 74 68 65 20 50 69 63 |on calls| the Pic|
|000022d0| 6b 43 6f 6c 6f 72 20 66 | 75 6e 63 74 69 6f 6e 2c |kColor f|unction,|
|000022e0| 20 61 6e 64 20 74 68 65 | 20 43 6f 6c 6f 72 20 50 | and the| Color P|
|000022f0| 69 63 6b 65 72 20 4d 61 | 6e 61 67 65 72 20 70 72 |icker Ma|nager pr|
|00002300| 65 73 65 6e 74 73 20 61 | 20 73 74 61 6e 64 61 72 |esents a| standar|
|00002310| 64 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 74 6f 20 |d dialog| box to |
|00002320| 74 68 65 20 75 73 65 72 | 2c 20 61 73 20 73 68 6f |the user|, as sho|
|00002330| 77 6e 20 69 6e 20 46 69 | 67 75 72 65 20 31 2d 31 |wn in Fi|gure 1-1|
|00002340| 2e 20 28 54 68 65 20 6f | 6c 64 65 72 20 43 6f 6c |. (The o|lder Col|
|00002350| 6f 72 20 50 69 63 6b 65 | 72 20 50 61 63 6b 61 67 |or Picke|r Packag|
|00002360| 65 20 66 75 6e 63 74 69 | 6f 6e 20 47 65 74 43 6f |e functi|on GetCo|
|00002370| 6c 6f 72 20 61 6c 73 6f | 20 64 69 73 70 6c 61 79 |lor also| display|
|00002380| 73 20 74 68 69 73 20 64 | 69 61 6c 6f 67 20 62 6f |s this d|ialog bo|
|00002390| 78 2e 29 0d 0d 46 69 67 | 75 72 65 20 31 2d 31 09 |x.)..Fig|ure 1-1.|
|000023a0| 0d 54 68 65 20 73 74 61 | 6e 64 61 72 64 20 64 69 |.The sta|ndard di|
|000023b0| 61 6c 6f 67 20 62 6f 78 | 20 66 6f 72 20 63 6f 6c |alog box| for col|
|000023c0| 6f 72 20 70 69 63 6b 65 | 72 73 0d 0d 49 66 20 74 |or picke|rs..If t|
|000023d0| 68 65 20 75 73 65 72 20 | 63 6c 69 63 6b 73 20 74 |he user |clicks t|
|000023e0| 68 65 20 4d 6f 72 65 20 | 43 68 6f 69 63 65 73 20 |he More |Choices |
|000023f0| 62 75 74 74 6f 6e 20 69 | 6e 20 74 68 69 73 20 64 |button i|n this d|
|00002400| 69 61 6c 6f 67 20 62 6f | 78 2c 20 74 68 65 20 43 |ialog bo|x, the C|
|00002410| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 20 4d 61 6e 61 |olor Pic|ker Mana|
|00002420| 67 65 72 20 64 69 73 70 | 6c 61 79 73 20 69 6e 20 |ger disp|lays in |
|00002430| 61 20 73 63 72 6f 6c 6c | 69 6e 67 20 6c 69 73 74 |a scroll|ing list|
|00002440| 20 61 6c 6c 20 61 76 61 | 69 6c 61 62 6c 65 20 63 | all ava|ilable c|
|00002450| 6f 6c 6f 72 20 70 69 63 | 6b 65 72 73 2c 20 61 73 |olor pic|kers, as|
|00002460| 20 73 68 6f 77 6e 20 69 | 6e 20 46 69 67 75 72 65 | shown i|n Figure|
|00002470| 20 31 2d 32 2e 0d 0d 46 | 69 67 75 72 65 20 31 2d | 1-2...F|igure 1-|
|00002480| 32 09 43 6f 6c 6f 72 20 | 70 69 63 6b 65 72 20 63 |2.Color |picker c|
|00002490| 68 6f 69 63 65 73 20 69 | 6e 20 74 68 65 20 73 74 |hoices i|n the st|
|000024a0| 61 6e 64 61 72 64 20 64 | 69 61 6c 6f 67 20 62 6f |andard d|ialog bo|
|000024b0| 78 20 66 6f 72 20 63 6f | 6c 6f 72 20 70 69 63 6b |x for co|lor pick|
|000024c0| 65 72 73 0d 0d 54 68 65 | 20 75 73 65 72 20 6d 61 |ers..The| user ma|
|000024d0| 6e 69 70 75 6c 61 74 65 | 73 20 74 68 65 20 63 6f |nipulate|s the co|
|000024e0| 6e 74 72 6f 6c 73 20 69 | 6e 20 74 68 69 73 20 64 |ntrols i|n this d|
|000024f0| 69 61 6c 6f 67 20 62 6f | 78 20 74 6f 20 73 65 6c |ialog bo|x to sel|
|00002500| 65 63 74 20 61 20 63 6f | 6c 6f 72 2e 20 57 68 65 |ect a co|lor. Whe|
|00002510| 6e 20 74 68 65 20 75 73 | 65 72 20 69 73 20 73 61 |n the us|er is sa|
|00002520| 74 69 73 66 69 65 64 20 | 77 69 74 68 20 61 20 63 |tisfied |with a c|
|00002530| 6f 6c 6f 72 20 61 6e 64 | 20 63 6c 69 63 6b 73 20 |olor and| clicks |
|00002540| 74 68 65 20 4f 4b 20 62 | 75 74 74 6f 6e 2c 20 50 |the OK b|utton, P|
|00002550| 69 63 6b 43 6f 6c 6f 72 | 20 72 65 74 75 72 6e 73 |ickColor| returns|
|00002560| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 63 6f | the sel|ected co|
|00002570| 6c 6f 72 20 74 6f 20 79 | 6f 75 72 20 61 70 70 6c |lor to y|our appl|
|00002580| 69 63 61 74 69 6f 6e 20 | 61 6e 64 20 63 6c 6f 73 |ication |and clos|
|00002590| 65 73 20 74 68 65 20 64 | 69 61 6c 6f 67 20 62 6f |es the d|ialog bo|
|000025a0| 78 2e 20 54 68 65 20 50 | 69 63 6b 43 6f 6c 6f 72 |x. The P|ickColor|
|000025b0| 20 66 75 6e 63 74 69 6f | 6e 20 61 6c 73 6f 20 63 | functio|n also c|
|000025c0| 6c 6f 73 65 73 20 74 68 | 65 20 64 69 61 6c 6f 67 |loses th|e dialog|
|000025d0| 20 62 6f 78 20 77 68 65 | 6e 20 74 68 65 20 75 73 | box whe|n the us|
|000025e0| 65 72 20 63 6c 69 63 6b | 73 20 74 68 65 20 43 61 |er click|s the Ca|
|000025f0| 6e 63 65 6c 20 62 75 74 | 74 6f 6e 2e 20 0d 42 79 |ncel but|ton. .By|
|00002600| 20 75 73 69 6e 67 20 6c | 6f 77 2d 6c 65 76 65 6c | using l|ow-level|
|00002610| 20 43 6f 6c 6f 72 20 50 | 69 63 6b 65 72 20 4d 61 | Color P|icker Ma|
|00002620| 6e 61 67 65 72 20 66 75 | 6e 63 74 69 6f 6e 73 2c |nager fu|nctions,|
|00002630| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00002640| 6e 20 63 61 6e 20 75 73 | 65 20 6d 6f 76 65 61 62 |n can us|e moveab|
|00002650| 6c 65 20 6d 6f 64 61 6c | 20 6f 72 20 6d 6f 64 65 |le modal| or mode|
|00002660| 6c 65 73 73 20 64 69 61 | 6c 6f 67 20 62 6f 78 65 |less dia|log boxe|
|00002670| 73 20 69 6e 73 74 65 61 | 64 20 6f 66 20 74 68 65 |s instea|d of the|
|00002680| 20 6d 6f 64 61 6c 20 64 | 69 61 6c 6f 67 20 62 6f | modal d|ialog bo|
|00002690| 78 20 64 69 73 70 6c 61 | 79 65 64 20 62 79 20 50 |x displa|yed by P|
|000026a0| 69 63 6b 43 6f 6c 6f 72 | 2e 20 46 69 67 75 72 65 |ickColor|. Figure|
|000026b0| 20 31 2d 33 20 73 68 6f | 77 73 20 61 20 6d 6f 64 | 1-3 sho|ws a mod|
|000026c0| 65 6c 65 73 73 20 64 69 | 61 6c 6f 67 20 62 6f 78 |eless di|alog box|
|000026d0| 20 66 6f 72 20 63 6f 6c | 6f 72 20 70 69 63 6b 65 | for col|or picke|
|000026e0| 72 73 2e 0d 0d 46 69 67 | 75 72 65 20 31 2d 33 09 |rs...Fig|ure 1-3.|
|000026f0| 41 20 6d 6f 64 65 6c 65 | 73 73 20 64 69 61 6c 6f |A modele|ss dialo|
|00002700| 67 20 62 6f 78 20 66 6f | 72 20 63 6f 6c 6f 72 20 |g box fo|r color |
|00002710| 70 69 63 6b 65 72 73 0d | 0d 0d 43 6f 6c 6f 72 20 |pickers.|..Color |
|00002720| 50 69 63 6b 65 72 73 20 | 61 73 20 43 6f 6d 70 6f |Pickers |as Compo|
|00002730| 6e 65 6e 74 73 0d 0d 43 | 6f 6c 6f 72 20 70 69 63 |nents..C|olor pic|
|00002740| 6b 65 72 73 20 61 72 65 | 20 69 6d 70 6c 65 6d 65 |kers are| impleme|
|00002750| 6e 74 65 64 20 61 73 20 | 63 6f 6d 70 6f 6e 65 6e |nted as |componen|
|00002760| 74 73 2c 20 77 68 69 63 | 68 2c 20 61 73 20 64 65 |ts, whic|h, as de|
|00002770| 73 63 72 69 62 65 64 20 | 69 6e 20 74 68 65 20 63 |scribed |in the c|
|00002780| 68 61 70 74 65 72 20 d2 | 43 6f 6d 70 6f 6e 65 6e |hapter .|Componen|
|00002790| 74 20 4d 61 6e 61 67 65 | 72 d3 20 69 6e 20 49 6e |t Manage|r. in In|
|000027a0| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 3a 20 |side Mac|intosh: |
|000027b0| 4d 6f 72 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 54 |More Mac|intosh T|
|000027c0| 6f 6f 6c 62 6f 78 2c 20 | 61 72 65 20 70 69 65 63 |oolbox, |are piec|
|000027d0| 65 73 20 6f 66 20 63 6f | 64 65 20 74 68 61 74 20 |es of co|de that |
|000027e0| 70 72 6f 76 69 64 65 20 | 61 20 73 65 74 20 6f 66 |provide |a set of|
|000027f0| 20 73 65 72 76 69 63 65 | 73 20 74 6f 20 6f 6e 65 | service|s to one|
|00002800| 20 6f 72 20 6d 6f 72 65 | 20 63 6c 69 65 6e 74 73 | or more| clients|
|00002810| 2e 20 46 6f 72 20 63 6f | 6c 6f 72 20 70 69 63 6b |. For co|lor pick|
|00002820| 65 72 73 2c 20 74 68 65 | 20 43 6f 6c 6f 72 20 50 |ers, the| Color P|
|00002830| 69 63 6b 65 72 20 4d 61 | 6e 61 67 65 72 20 69 73 |icker Ma|nager is|
|00002840| 20 74 68 65 20 63 6c 69 | 65 6e 74 2e 20 57 68 65 | the cli|ent. Whe|
|00002850| 6e 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |n your a|pplicati|
|00002860| 6f 6e 20 63 61 6c 6c 73 | 20 61 20 43 6f 6c 6f 72 |on calls| a Color|
|00002870| 20 50 69 63 6b 65 72 20 | 4d 61 6e 61 67 65 72 20 | Picker |Manager |
|00002880| 66 75 6e 63 74 69 6f 6e | 2c 20 69 74 20 63 61 6c |function|, it cal|
|00002890| 6c 73 20 74 68 65 20 43 | 6f 6d 70 6f 6e 65 6e 74 |ls the C|omponent|
|000028a0| 20 4d 61 6e 61 67 65 72 | 2c 20 77 68 69 63 68 20 | Manager|, which |
|000028b0| 69 6e 20 74 75 72 6e 20 | 63 61 6c 6c 73 20 74 68 |in turn |calls th|
|000028c0| 65 20 63 6f 6c 6f 72 20 | 70 69 63 6b 65 72 20 69 |e color |picker i|
|000028d0| 74 73 65 6c 66 2e 0d 54 | 68 65 20 73 65 70 61 72 |tself..T|he separ|
|000028e0| 61 74 69 6f 6e 20 6f 66 | 20 63 6f 6c 6f 72 20 70 |ation of| color p|
|000028f0| 69 63 6b 65 72 73 20 66 | 72 6f 6d 20 74 68 65 20 |ickers f|rom the |
|00002900| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 4d 61 6e |Color Pi|cker Man|
|00002910| 61 67 65 72 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |ager all|ows the |
|00002920| 75 73 65 72 20 6f 72 20 | 79 6f 75 72 20 61 70 70 |user or |your app|
|00002930| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 64 79 6e 61 |lication| to dyna|
|00002940| 6d 69 63 61 6c 6c 79 20 | 61 64 64 20 6e 65 77 20 |mically |add new |
|00002950| 63 6f 6c 6f 72 20 70 69 | 63 6b 65 72 73 20 74 6f |color pi|ckers to|
|00002960| 20 74 68 65 20 75 73 65 | 72 d5 73 20 73 79 73 74 | the use|r.s syst|
|00002970| 65 6d 2e 20 4f 6e 63 65 | 20 61 20 6e 65 77 20 63 |em. Once| a new c|
|00002980| 6f 6c 6f 72 20 70 69 63 | 6b 65 72 20 68 61 73 20 |olor pic|ker has |
|00002990| 62 65 65 6e 20 72 65 67 | 69 73 74 65 72 65 64 20 |been reg|istered |
|000029a0| 74 6f 20 74 68 65 20 43 | 6f 6d 70 6f 6e 65 6e 74 |to the C|omponent|
|000029b0| 20 4d 61 6e 61 67 65 72 | 2c 20 69 74 d5 73 20 61 | Manager|, it.s a|
|000029c0| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 75 73 65 |vailable| for use|
|000029d0| 20 62 79 20 74 68 65 20 | 43 6f 6c 6f 72 20 50 69 | by the |Color Pi|
|000029e0| 63 6b 65 72 20 4d 61 6e | 61 67 65 72 2e 20 54 68 |cker Man|ager. Th|
|000029f0| 65 20 73 65 63 74 69 6f | 6e 20 d2 57 72 69 74 69 |e sectio|n .Writi|
|00002a00| 6e 67 20 59 6f 75 72 20 | 4f 77 6e 20 43 6f 6c 6f |ng Your |Own Colo|
|00002a10| 72 20 50 69 63 6b 65 72 | 73 d3 20 62 65 67 69 6e |r Picker|s. begin|
|00002a20| 6e 69 6e 67 20 6f 6e 20 | 70 61 67 65 20 31 2d 32 |ning on |page 1-2|
|00002a30| 36 20 64 65 73 63 72 69 | 62 65 73 20 68 6f 77 20 |6 descri|bes how |
|00002a40| 74 6f 20 63 72 65 61 74 | 65 20 79 6f 75 72 20 6f |to creat|e your o|
|00002a50| 77 6e 20 63 6f 6c 6f 72 | 20 70 69 63 6b 65 72 2e |wn color| picker.|
|00002a60| 20 48 6f 77 65 76 65 72 | 2c 20 6d 6f 73 74 20 61 | However|, most a|
|00002a70| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 64 6f 20 6e |pplicati|ons do n|
|00002a80| 6f 74 20 6e 65 65 64 20 | 74 6f 20 63 72 65 61 74 |ot need |to creat|
|00002a90| 65 20 74 68 65 69 72 20 | 6f 77 6e 20 70 69 63 6b |e their |own pick|
|00002aa0| 65 72 73 2c 20 62 65 63 | 61 75 73 65 20 74 68 6f |ers, bec|ause tho|
|00002ab0| 73 65 20 73 75 70 70 6c | 69 65 64 20 77 69 74 68 |se suppl|ied with|
|00002ac0| 20 73 79 73 74 65 6d 20 | 73 6f 66 74 77 61 72 65 | system |software|
|00002ad0| 20 61 72 65 20 75 73 75 | 61 6c 6c 79 20 73 75 66 | are usu|ally suf|
|00002ae0| 66 69 63 69 65 6e 74 2e | 0d 0d 0d 43 6f 6c 6f 72 |ficient.|...Color|
|00002af0| 53 79 6e 63 20 43 6f 6c | 6f 72 73 20 61 6e 64 20 |Sync Col|ors and |
|00002b00| 74 68 65 20 43 6f 6c 6f | 72 20 50 69 63 6b 65 72 |the Colo|r Picker|
|00002b10| 20 4d 61 6e 61 67 65 72 | 0d 0d 57 68 65 6e 20 72 | Manager|..When r|
|00002b20| 65 74 75 72 6e 69 6e 67 | 20 61 20 63 6f 6c 6f 72 |eturning| a color|
|00002b30| 20 73 65 6c 65 63 74 65 | 64 20 62 79 20 74 68 65 | selecte|d by the|
|00002b40| 20 75 73 65 72 2c 20 74 | 68 65 20 43 6f 6c 6f 72 | user, t|he Color|
|00002b50| 20 50 69 63 6b 65 72 20 | 4d 61 6e 61 67 65 72 20 | Picker |Manager |
|00002b60| 75 73 65 73 20 74 68 65 | 20 43 6f 6c 6f 72 53 79 |uses the| ColorSy|
|00002b70| 6e 63 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 |nc defin|ition of|
|00002b80| 20 61 20 63 6f 6c 6f 72 | 2c 20 77 68 69 63 68 20 | a color|, which |
|00002b90| 63 6f 6e 74 61 69 6e 73 | 20 62 6f 74 68 20 61 20 |contains| both a |
|00002ba0| 63 6f 6c 6f 72 20 61 6e | 64 20 61 20 63 6f 6c 6f |color an|d a colo|
|00002bb0| 72 2d 6d 61 74 63 68 69 | 6e 67 20 70 72 6f 66 69 |r-matchi|ng profi|
|00002bc0| 6c 65 2e 20 54 68 65 20 | 63 6f 6c 6f 72 2d 6d 61 |le. The |color-ma|
|00002bd0| 74 63 68 69 6e 67 20 70 | 72 6f 66 69 6c 65 20 64 |tching p|rofile d|
|00002be0| 65 66 69 6e 65 73 20 74 | 68 65 20 63 6f 6c 6f 72 |efines t|he color|
|00002bf0| 20 73 70 61 63 65 20 6f | 66 20 74 68 65 20 63 6f | space o|f the co|
|00002c00| 6c 6f 72 20 28 77 68 69 | 63 68 20 69 6e 63 6c 75 |lor (whi|ch inclu|
|00002c10| 64 65 73 20 74 68 65 20 | 74 79 70 65 20 6f 66 20 |des the |type of |
|00002c20| 63 6f 6c 6f 72 20 d1 20 | 43 4d 59 4b 2c 20 48 53 |color . |CMYK, HS|
|00002c30| 4c 2c 20 52 47 42 2c 20 | 61 6e 64 20 73 6f 20 6f |L, RGB, |and so o|
|00002c40| 6e 29 2e 20 59 6f 75 72 | 20 61 70 70 6c 69 63 61 |n). Your| applica|
|00002c50| 74 69 6f 6e 20 63 61 6e | 20 61 6c 73 6f 20 73 70 |tion can| also sp|
|00002c60| 65 63 69 66 79 20 61 20 | 64 65 73 74 69 6e 61 74 |ecify a |destinat|
|00002c70| 69 6f 6e 20 70 72 6f 66 | 69 6c 65 2c 20 77 68 69 |ion prof|ile, whi|
|00002c80| 63 68 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |ch descr|ibes the|
|00002c90| 20 63 6f 6c 6f 72 20 73 | 70 61 63 65 20 6f 66 20 | color s|pace of |
|00002ca0| 74 68 65 20 64 65 76 69 | 63 65 20 66 6f 72 20 77 |the devi|ce for w|
|00002cb0| 68 69 63 68 20 74 68 65 | 20 63 6f 6c 6f 72 20 69 |hich the| color i|
|00002cc0| 73 20 62 65 69 6e 67 20 | 63 68 6f 73 65 6e 20 28 |s being |chosen (|
|00002cd0| 66 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 61 20 63 |for exam|ple, a c|
|00002ce0| 6f 6c 6f 72 20 70 72 69 | 6e 74 65 72 20 74 68 61 |olor pri|nter tha|
|00002cf0| 74 20 77 69 6c 6c 20 65 | 76 65 6e 74 75 61 6c 6c |t will e|ventuall|
|00002d00| 79 20 70 72 69 6e 74 20 | 74 68 65 20 64 6f 63 75 |y print |the docu|
|00002d10| 6d 65 6e 74 29 2e 20 57 | 68 65 6e 20 67 69 76 65 |ment). W|hen give|
|00002d20| 6e 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |n the de|stinatio|
|00002d30| 6e 20 70 72 6f 66 69 6c | 65 2c 20 63 6f 6c 6f 72 |n profil|e, color|
|00002d40| 20 70 69 63 6b 65 72 73 | 20 74 68 61 74 20 61 72 | pickers| that ar|
|00002d50| 65 20 43 6f 6c 6f 72 53 | 79 6e 63 20 61 77 61 72 |e ColorS|ync awar|
|00002d60| 65 20 63 61 6e 20 68 65 | 6c 70 20 74 68 65 20 75 |e can he|lp the u|
|00002d70| 73 65 72 20 63 68 6f 6f | 73 65 20 61 20 63 6f 6c |ser choo|se a col|
|00002d80| 6f 72 20 74 68 61 74 d5 | 73 20 77 69 74 68 69 6e |or that.|s within|
|00002d90| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|00002da0| 20 64 65 76 69 63 65 d5 | 73 20 67 61 6d 75 74 2e | device.|s gamut.|
|00002db0| 20 53 65 65 20 74 68 65 | 20 63 68 61 70 74 65 72 | See the| chapter|
|00002dc0| 20 d2 43 6f 6c 6f 72 53 | 79 6e 63 20 55 74 69 6c | .ColorS|ync Util|
|00002dd0| 69 74 69 65 73 d3 20 66 | 6f 72 20 6d 6f 72 65 20 |ities. f|or more |
|00002de0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00002df0| 74 20 43 6f 6c 6f 72 53 | 79 6e 63 d5 73 20 63 6f |t ColorS|ync.s co|
|00002e00| 6c 6f 72 20 6d 61 74 63 | 68 69 6e 67 20 63 61 70 |lor matc|hing cap|
|00002e10| 61 62 69 6c 69 74 69 65 | 73 2e 0d 46 6f 72 20 63 |abilitie|s..For c|
|00002e20| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 77 69 74 |ompatibi|lity wit|
|00002e30| 68 20 74 68 65 20 43 6f | 6c 6f 72 20 50 69 63 6b |h the Co|lor Pick|
|00002e40| 65 72 20 50 61 63 6b 61 | 67 65 2c 20 74 68 65 20 |er Packa|ge, the |
|00002e50| 47 65 74 43 6f 6c 6f 72 | 20 66 75 6e 63 74 69 6f |GetColor| functio|
|00002e60| 6e 20 73 74 69 6c 6c 20 | 75 73 65 73 20 52 47 42 |n still |uses RGB|
|00002e70| 20 63 6f 6c 6f 72 73 2e | 20 54 6f 20 63 6f 6e 76 | colors.| To conv|
|00002e80| 65 72 74 20 52 47 42 20 | 63 6f 6c 6f 72 73 20 74 |ert RGB |colors t|
|00002e90| 6f 20 61 6e 64 20 66 72 | 6f 6d 20 74 68 6f 73 65 |o and fr|om those|
|00002ea0| 20 6f 66 20 74 68 65 20 | 43 4d 59 4b 2c 20 48 53 | of the |CMYK, HS|
|00002eb0| 4c 2c 20 61 6e 64 20 48 | 53 56 20 6d 6f 64 65 6c |L, and H|SV model|
|00002ec0| 73 2c 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |s, you c|an use t|
|00002ed0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 64 65 73 |he funct|ions des|
|00002ee0| 63 72 69 62 65 64 20 62 | 65 67 69 6e 6e 69 6e 67 |cribed b|eginning|
|00002ef0| 20 6f 6e 20 70 61 67 65 | 20 31 2d 37 39 2e 20 53 | on page| 1-79. S|
|00002f00| 65 65 20 74 68 65 20 63 | 68 61 70 74 65 72 20 d2 |ee the c|hapter .|
|00002f10| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 20 74 6f 20 |Introduc|tion to |
|00002f20| 41 64 76 61 6e 63 65 64 | 20 43 6f 6c 6f 72 20 49 |Advanced| Color I|
|00002f30| 6d 61 67 69 6e 67 d3 20 | 66 6f 72 20 61 6e 20 65 |maging. |for an e|
|00002f40| 78 70 6c 61 6e 61 74 69 | 6f 6e 20 6f 66 20 74 68 |xplanati|on of th|
|00002f50| 65 73 65 20 63 6f 6c 6f | 72 20 6d 6f 64 65 6c 73 |ese colo|r models|
|00002f60| 2e 0d 0d 55 73 69 6e 67 | 20 74 68 65 20 43 6f 6c |...Using| the Col|
|00002f70| 6f 72 20 50 69 63 6b 65 | 72 20 4d 61 6e 61 67 65 |or Picke|r Manage|
|00002f80| 72 0d 0d 59 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |r..You c|an use t|
|00002f90| 68 65 20 43 6f 6c 6f 72 | 20 50 69 63 6b 65 72 20 |he Color| Picker |
|00002fa0| 4d 61 6e 61 67 65 72 20 | 74 6f 20 61 6c 6c 6f 77 |Manager |to allow|
|00002fb0| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 73 65 6c | the use|r to sel|
|00002fc0| 65 63 74 20 61 20 63 6f | 6c 6f 72 2e 20 54 68 65 |ect a co|lor. The|
|00002fd0| 20 66 75 6e 63 74 69 6f | 6e 73 20 64 65 66 69 6e | functio|ns defin|
|00002fe0| 65 64 20 62 79 20 74 68 | 65 20 43 6f 6c 6f 72 20 |ed by th|e Color |
|00002ff0| 50 69 63 6b 65 72 20 4d | 61 6e 61 67 65 72 20 61 |Picker M|anager a|
|00003000| 72 65 20 64 69 76 69 64 | 65 64 20 69 6e 74 6f 20 |re divid|ed into |
|00003010| 6f 6e 65 20 68 69 67 68 | 2d 6c 65 76 65 6c 20 66 |one high|-level f|
|00003020| 75 6e 63 74 69 6f 6e 20 | 61 6e 64 20 73 65 76 65 |unction |and seve|
|00003030| 72 61 6c 20 6c 6f 77 2d | 6c 65 76 65 6c 20 66 75 |ral low-|level fu|
|00003040| 6e 63 74 69 6f 6e 73 3a | 0d 6e 09 54 68 65 20 68 |nctions:|.n.The h|
|00003050| 69 67 68 2d 6c 65 76 65 | 6c 20 66 75 6e 63 74 69 |igh-leve|l functi|
|00003060| 6f 6e 2c 20 50 69 63 6b | 43 6f 6c 6f 72 2c 20 70 |on, Pick|Color, p|
|00003070| 72 6f 76 69 64 65 73 20 | 61 63 63 65 73 73 20 74 |rovides |access t|
|00003080| 6f 20 61 6c 6d 6f 73 74 | 20 61 6c 6c 20 6f 66 20 |o almost| all of |
|00003090| 74 68 65 20 43 6f 6c 6f | 72 20 50 69 63 6b 65 72 |the Colo|r Picker|
|000030a0| 20 4d 61 6e 61 67 65 72 | d5 73 20 66 65 61 74 75 | Manager|.s featu|
|000030b0| 72 65 20 73 65 74 2e 20 | 46 6f 72 20 63 6f 6d 70 |re set. |For comp|
|000030c0| 61 74 69 62 69 6c 69 74 | 79 20 77 69 74 68 20 74 |atibilit|y with t|
|000030d0| 68 65 20 6f 6c 64 65 72 | 20 43 6f 6c 6f 72 20 50 |he older| Color P|
|000030e0| 69 63 6b 65 72 20 50 61 | 63 6b 61 67 65 2c 20 69 |icker Pa|ckage, i|
|000030f0| 74 73 20 6f 6c 64 20 68 | 69 67 68 2d 6c 65 76 65 |ts old h|igh-leve|
|00003100| 6c 20 66 75 6e 63 74 69 | 6f 6e 2c 20 47 65 74 43 |l functi|on, GetC|
|00003110| 6f 6c 6f 72 2c 20 69 73 | 20 73 74 69 6c 6c 20 73 |olor, is| still s|
|00003120| 75 70 70 6f 72 74 65 64 | 20 62 79 20 74 68 65 20 |upported| by the |
|00003130| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 4d 61 6e |Color Pi|cker Man|
|00003140| 61 67 65 72 2e 20 54 68 | 65 20 75 73 65 20 6f 66 |ager. Th|e use of|
|00003150| 20 50 69 63 6b 43 6f 6c | 6f 72 20 69 73 20 64 65 | PickCol|or is de|
|00003160| 73 63 72 69 62 65 64 20 | 69 6e 20 d2 55 73 69 6e |scribed |in .Usin|
|00003170| 67 20 74 68 65 20 53 74 | 61 6e 64 61 72 64 20 44 |g the St|andard D|
|00003180| 69 61 6c 6f 67 20 42 6f | 78 20 66 6f 72 20 43 6f |ialog Bo|x for Co|
|00003190| 6c 6f 72 20 50 69 63 6b | 65 72 73 d3 20 62 65 67 |lor Pick|ers. beg|
|000031a0| 69 6e 6e 69 6e 67 20 6f | 6e 20 70 61 67 65 20 31 |inning o|n page 1|
|000031b0| 2d 39 2e 0d 6e 09 54 68 | 65 20 6c 6f 77 2d 6c 65 |-9..n.Th|e low-le|
|000031c0| 76 65 6c 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 6c |vel func|tions al|
|000031d0| 6c 6f 77 20 6d 61 78 69 | 6d 75 6d 20 66 6c 65 78 |low maxi|mum flex|
|000031e0| 69 62 69 6c 69 74 79 20 | 66 6f 72 20 79 6f 75 72 |ibility |for your|
|000031f0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 54 68 | applica|tion. Th|
|00003200| 65 20 50 69 63 6b 43 6f | 6c 6f 72 20 66 75 6e 63 |e PickCo|lor func|
|00003210| 74 69 6f 6e 20 70 72 65 | 73 65 6e 74 73 20 61 20 |tion pre|sents a |
|00003220| 6d 6f 64 61 6c 20 64 69 | 61 6c 6f 67 20 62 6f 78 |modal di|alog box|
|00003230| 2c 20 62 75 74 20 74 68 | 65 20 6c 6f 77 2d 6c 65 |, but th|e low-le|
|00003240| 76 65 6c 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 6c |vel func|tions al|
|00003250| 6c 6f 77 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |low your| applica|
|00003260| 74 69 6f 6e 20 74 6f 20 | 75 73 65 20 6d 6f 76 65 |tion to |use move|
|00003270| 61 62 6c 65 20 6d 6f 64 | 61 6c 20 61 6e 64 20 6d |able mod|al and m|
|00003280| 6f 64 65 6c 65 73 73 20 | 64 69 61 6c 6f 67 20 62 |odeless |dialog b|
|00003290| 6f 78 65 73 2e 20 54 68 | 65 73 65 20 6c 6f 77 2d |oxes. Th|ese low-|
|000032a0| 6c 65 76 65 6c 20 66 75 | 6e 63 74 69 6f 6e 73 20 |level fu|nctions |
|000032b0| 61 72 65 20 64 65 73 63 | 72 69 62 65 64 20 69 6e |are desc|ribed in|
|000032c0| 20 d2 55 73 69 6e 67 20 | 43 75 73 74 6f 6d 69 7a | .Using |Customiz|
|000032d0| 65 64 20 44 69 61 6c 6f | 67 20 42 6f 78 65 73 20 |ed Dialo|g Boxes |
|000032e0| 66 6f 72 20 43 6f 6c 6f | 72 20 50 69 63 6b 65 72 |for Colo|r Picker|
|000032f0| 73 d3 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 6e 20 |s. begin|ning on |
|00003300| 70 61 67 65 20 31 2d 31 | 32 2e 0d 54 6f 20 74 65 |page 1-1|2..To te|
|00003310| 73 74 20 66 6f 72 20 74 | 68 65 20 61 76 61 69 6c |st for t|he avail|
|00003320| 61 62 69 6c 69 74 79 20 | 6f 66 20 74 68 65 20 43 |ability |of the C|
|00003330| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 20 4d 61 6e 61 |olor Pic|ker Mana|
|00003340| 67 65 72 2c 20 3c 3c 68 | 6f 77 20 64 6f 20 77 65 |ger, <<h|ow do we|
|00003350| 20 74 65 73 74 20 66 6f | 72 20 43 6f 6c 6f 72 20 | test fo|r Color |
|00003360| 50 69 63 6b 65 72 20 4d | 61 6e 61 67 65 72 3f 3f |Picker M|anager??|
|00003370| 3e 3e 0d 2f 2a 20 67 65 | 73 74 61 6c 74 20 73 65 |>>./* ge|stalt se|
|00003380| 6c 65 63 74 6f 72 20 2a | 2f 0d 23 64 65 66 69 6e |lector *|/.#defin|
|00003390| 65 20 67 65 73 74 61 6c | 74 43 6f 6c 6f 72 50 69 |e gestal|tColorPi|
|000033a0| 63 6b 65 72 20 27 63 70 | 6b 72 27 09 09 09 09 09 |cker 'cp|kr'.....|
|000033b0| 09 09 09 09 09 09 09 2f | 2a 20 3c 3c 3f 3f 3f 3e |......./|* <<???>|
|000033c0| 3e 20 2a 2f 0d 42 65 73 | 69 64 65 73 20 75 73 69 |> */.Bes|ides usi|
|000033d0| 6e 67 20 74 68 65 20 43 | 6f 6c 6f 72 20 50 69 63 |ng the C|olor Pic|
|000033e0| 6b 65 72 20 4d 61 6e 61 | 67 65 72 20 74 6f 20 69 |ker Mana|ger to i|
|000033f0| 6e 74 65 72 61 63 74 20 | 77 69 74 68 20 63 6f 6c |nteract |with col|
|00003400| 6f 72 20 70 69 63 6b 65 | 72 73 20 61 6c 72 65 61 |or picke|rs alrea|
|00003410| 64 79 20 61 76 61 69 6c | 61 62 6c 65 20 6f 6e 20 |dy avail|able on |
|00003420| 74 68 65 20 75 73 65 72 | d5 73 20 73 79 73 74 65 |the user|.s syste|
|00003430| 6d 2c 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |m, you c|an use t|
|00003440| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00003450| 61 67 65 72 20 74 6f 20 | 63 72 65 61 74 65 20 79 |ager to |create y|
|00003460| 6f 75 72 20 6f 77 6e 20 | 63 6f 6c 6f 72 20 70 69 |our own |color pi|
|00003470| 63 6b 65 72 20 77 69 74 | 68 20 6f 74 68 65 72 20 |cker wit|h other |
|00003480| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 63 61 6e |applicat|ions can|
|00003490| 20 69 6e 74 65 72 61 63 | 74 20 62 79 20 75 73 69 | interac|t by usi|
|000034a0| 6e 67 20 74 68 65 20 43 | 6f 6c 6f 72 20 50 69 63 |ng the C|olor Pic|
|000034b0| 6b 65 72 20 4d 61 6e 61 | 67 65 72 2c 20 61 73 20 |ker Mana|ger, as |
|000034c0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 d2 57 72 |describe|d in .Wr|
|000034d0| 69 74 69 6e 67 20 59 6f | 75 72 20 4f 77 6e 20 43 |iting Yo|ur Own C|
|000034e0| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 73 d3 20 62 65 |olor Pic|kers. be|
|000034f0| 67 69 6e 6e 69 6e 67 20 | 6f 6e 20 70 61 67 65 20 |ginning |on page |
|00003500| 31 2d 32 36 2e 0d 0d 0d | 55 73 69 6e 67 20 74 68 |1-26....|Using th|
|00003510| 65 20 53 74 61 6e 64 61 | 72 64 20 44 69 61 6c 6f |e Standa|rd Dialo|
|00003520| 67 20 42 6f 78 20 66 6f | 72 20 43 6f 6c 6f 72 20 |g Box fo|r Color |
|00003530| 50 69 63 6b 65 72 73 0d | 0d 57 68 65 6e 20 79 6f |Pickers.|.When yo|
|00003540| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |ur appli|cation c|
|00003550| 61 6c 6c 73 20 74 68 65 | 20 50 69 63 6b 43 6f 6c |alls the| PickCol|
|00003560| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 2c 20 79 6f 75 |or funct|ion, you|
|00003570| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 70 61 |r applic|ation pa|
|00003580| 73 73 65 73 20 69 74 20 | 61 20 70 6f 69 6e 74 65 |sses it |a pointe|
|00003590| 72 20 74 6f 20 61 20 50 | 69 63 6b 43 6f 6c 6f 72 |r to a P|ickColor|
|000035a0| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|000035b0| 2e 20 59 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |. Your a|pplicati|
|000035c0| 6f 6e 20 75 73 65 73 20 | 74 68 65 20 50 69 63 6b |on uses |the Pick|
|000035d0| 43 6f 6c 6f 72 20 70 61 | 72 61 6d 65 74 65 72 20 |Color pa|rameter |
|000035e0| 62 6c 6f 63 6b 20 28 77 | 68 69 63 68 20 69 73 20 |block (w|hich is |
|000035f0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 64 65 74 |describe|d in det|
|00003600| 61 69 6c 20 6f 6e 20 70 | 61 67 65 20 31 2d 35 34 |ail on p|age 1-54|
|00003610| 29 20 74 6f 20 73 70 65 | 63 69 66 79 20 69 6e 66 |) to spe|cify inf|
|00003620| 6f 72 6d 61 74 69 6f 6e | 20 74 6f 20 61 6e 64 20 |ormation| to and |
|00003630| 6f 62 74 61 69 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |obtain i|nformati|
|00003640| 6f 6e 20 66 72 6f 6d 20 | 74 68 65 20 43 6f 6c 6f |on from |the Colo|
|00003650| 72 20 50 69 63 6b 65 72 | 20 4d 61 6e 61 67 65 72 |r Picker| Manager|
|00003660| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 79 |. For ex|ample, y|
|00003670| 6f 75 20 75 73 65 20 74 | 68 65 20 50 69 63 6b 43 |ou use t|he PickC|
|00003680| 6f 6c 6f 72 20 70 61 72 | 61 6d 65 74 65 72 20 62 |olor par|ameter b|
|00003690| 6c 6f 63 6b 20 74 6f 20 | 73 70 65 63 69 66 79 20 |lock to |specify |
|000036a0| 77 68 65 72 65 20 74 6f | 20 70 6c 61 63 65 20 74 |where to| place t|
|000036b0| 68 65 20 64 69 61 6c 6f | 67 20 62 6f 78 20 61 6e |he dialo|g box an|
|000036c0| 64 20 77 68 69 63 68 20 | 63 6f 6c 6f 72 20 70 69 |d which |color pi|
|000036d0| 63 6b 65 72 20 74 6f 20 | 69 6e 69 74 69 61 6c 6c |cker to |initiall|
|000036e0| 79 20 64 69 73 70 6c 61 | 79 20 69 6e 20 74 68 65 |y displa|y in the|
|000036f0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2e 20 59 6f 75 | dialog |box. You|
|00003700| 20 61 6c 73 6f 20 75 73 | 65 20 74 68 65 20 50 69 | also us|e the Pi|
|00003710| 63 6b 43 6f 6c 6f 72 20 | 70 61 72 61 6d 65 74 65 |ckColor |paramete|
|00003720| 72 20 62 6c 6f 63 6b 20 | 74 6f 20 64 65 74 65 72 |r block |to deter|
|00003730| 6d 69 6e 65 20 77 68 65 | 74 68 65 72 20 74 68 65 |mine whe|ther the|
|00003740| 20 75 73 65 72 20 68 61 | 73 20 73 65 6c 65 63 74 | user ha|s select|
|00003750| 65 64 20 61 20 6e 65 77 | 20 63 6f 6c 6f 72 2c 20 |ed a new| color, |
|00003760| 61 6e 64 2c 20 69 66 20 | 73 6f 2c 20 77 68 69 63 |and, if |so, whic|
|00003770| 68 20 63 6f 6c 6f 72 20 | 69 73 20 73 65 6c 65 63 |h color |is selec|
|00003780| 74 65 64 2e 0d 54 68 65 | 20 50 69 63 6b 43 6f 6c |ted..The| PickCol|
|00003790| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 20 64 69 73 70 |or funct|ion disp|
|000037a0| 6c 61 79 73 20 74 68 65 | 20 6d 6f 64 61 6c 20 64 |lays the| modal d|
|000037b0| 69 61 6c 6f 67 20 62 6f | 78 20 73 68 6f 77 6e 20 |ialog bo|x shown |
|000037c0| 69 6e 20 46 69 67 75 72 | 65 20 31 2d 31 20 6f 6e |in Figur|e 1-1 on|
|000037d0| 20 70 61 67 65 20 31 2d | 36 2e 20 59 6f 75 72 20 | page 1-|6. Your |
|000037e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 75 73 65 73 |applicat|ion uses|
|000037f0| 20 74 68 65 20 70 72 6f | 6d 70 74 20 66 69 65 6c | the pro|mpt fiel|
|00003800| 64 20 6f 66 20 74 68 65 | 20 50 69 63 6b 43 6f 6c |d of the| PickCol|
|00003810| 6f 72 20 70 61 72 61 6d | 65 74 65 72 20 62 6c 6f |or param|eter blo|
|00003820| 63 6b 20 74 6f 20 73 70 | 65 63 69 66 79 20 74 68 |ck to sp|ecify th|
|00003830| 65 20 74 65 78 74 20 73 | 74 72 69 6e 67 20 70 72 |e text s|tring pr|
|00003840| 6f 6d 70 74 69 6e 67 20 | 74 68 65 20 75 73 65 72 |ompting |the user|
|00003850| 20 74 6f 20 63 68 6f 6f | 73 65 20 61 20 63 6f 6c | to choo|se a col|
|00003860| 6f 72 20 66 6f 72 20 61 | 20 70 61 72 74 69 63 75 |or for a| particu|
|00003870| 6c 61 72 20 75 73 65 20 | 28 66 6f 72 20 65 78 61 |lar use |(for exa|
|00003880| 6d 70 6c 65 2c 20 d2 43 | 68 6f 6f 73 65 20 61 20 |mple, .C|hoose a |
|00003890| 68 69 67 68 6c 69 67 68 | 74 20 63 6f 6c 6f 72 d3 |highligh|t color.|
|000038a0| 29 2e 0d 57 68 65 6e 20 | 74 68 65 20 75 73 65 72 |)..When |the user|
|000038b0| 20 63 6c 69 63 6b 73 20 | 74 68 65 20 43 61 6e 63 | clicks |the Canc|
|000038c0| 65 6c 20 62 75 74 74 6f | 6e 2c 20 50 69 63 6b 43 |el butto|n, PickC|
|000038d0| 6f 6c 6f 72 20 72 65 6d | 6f 76 65 73 20 74 68 65 |olor rem|oves the|
|000038e0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2c 20 61 6e 64 | dialog |box, and|
|000038f0| 20 74 68 65 20 6e 65 77 | 43 6f 6c 6f 72 43 68 6f | the new|ColorCho|
|00003900| 73 65 6e 20 66 69 65 6c | 64 20 6f 66 20 74 68 65 |sen fiel|d of the|
|00003910| 20 50 69 63 6b 43 6f 6c | 6f 72 20 70 61 72 61 6d | PickCol|or param|
|00003920| 65 74 65 72 20 62 6c 6f | 63 6b 20 63 6f 6e 74 61 |eter blo|ck conta|
|00003930| 69 6e 73 20 74 68 65 20 | 76 61 6c 75 65 20 66 61 |ins the |value fa|
|00003940| 6c 73 65 2e 20 57 68 65 | 6e 20 74 68 65 20 75 73 |lse. Whe|n the us|
|00003950| 65 72 20 63 6c 69 63 6b | 73 20 74 68 65 20 4f 4b |er click|s the OK|
|00003960| 20 62 75 74 74 6f 6e 2c | 20 50 69 63 6b 43 6f 6c | button,| PickCol|
|00003970| 6f 72 20 72 65 6d 6f 76 | 65 73 20 74 68 65 20 64 |or remov|es the d|
|00003980| 69 61 6c 6f 67 20 62 6f | 78 2c 20 74 68 65 20 6e |ialog bo|x, the n|
|00003990| 65 77 43 6f 6c 6f 72 43 | 68 6f 73 65 6e 20 66 69 |ewColorC|hosen fi|
|000039a0| 65 6c 64 20 6f 66 20 74 | 68 65 20 50 69 63 6b 43 |eld of t|he PickC|
|000039b0| 6f 6c 6f 72 20 70 61 72 | 61 6d 65 74 65 72 20 62 |olor par|ameter b|
|000039c0| 6c 6f 63 6b 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |lock con|tains th|
|000039d0| 65 20 76 61 6c 75 65 20 | 74 72 75 65 2c 20 61 6e |e value |true, an|
|000039e0| 64 20 74 68 65 20 66 69 | 65 6c 64 20 74 68 65 43 |d the fi|eld theC|
|000039f0| 6f 6c 6f 72 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |olor con|tains a |
|00003a00| 73 74 72 75 63 74 75 72 | 65 20 64 65 73 63 72 69 |structur|e descri|
|00003a10| 62 69 6e 67 20 74 68 65 | 20 6e 65 77 6c 79 20 73 |bing the| newly s|
|00003a20| 65 6c 65 63 74 65 64 20 | 63 6f 6c 6f 72 2e 20 59 |elected |color. Y|
|00003a30| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00003a40| 63 61 6e 20 74 68 65 6e | 20 75 73 65 20 74 68 69 |can then| use thi|
|00003a50| 73 20 63 6f 6c 6f 72 20 | 66 6f 72 20 74 68 65 20 |s color |for the |
|00003a60| 70 75 72 70 6f 73 65 20 | 64 65 73 63 72 69 62 65 |purpose |describe|
|00003a70| 64 20 69 6e 20 74 68 65 | 20 70 72 6f 6d 70 74 20 |d in the| prompt |
|00003a80| 73 74 72 69 6e 67 20 28 | 66 6f 72 20 65 78 61 6d |string (|for exam|
|00003a90| 70 6c 65 2c 20 68 69 67 | 68 6c 69 67 68 74 69 6e |ple, hig|hlightin|
|00003aa0| 67 20 74 65 78 74 20 6f | 72 20 66 69 6c 6c 69 6e |g text o|r fillin|
|00003ab0| 67 20 73 68 61 70 65 73 | 29 2e 0d 0d 4c 69 73 74 |g shapes|)...List|
|00003ac0| 69 6e 67 20 31 2d 31 09 | 55 73 69 6e 67 20 74 68 |ing 1-1.|Using th|
|00003ad0| 65 20 50 69 63 6b 43 6f | 6c 6f 72 20 66 75 6e 63 |e PickCo|lor func|
|00003ae0| 74 69 6f 6e 0d 0d 76 6f | 69 64 20 50 69 63 6b 41 |tion..vo|id PickA|
|00003af0| 43 6f 6c 6f 72 28 76 6f | 69 64 29 0d 7b 09 43 6f |Color(vo|id).{.Co|
|00003b00| 6c 6f 72 50 69 63 6b 65 | 72 49 6e 66 6f 20 63 70 |lorPicke|rInfo cp|
|00003b10| 49 6e 66 6f 3b 0d 09 2f | 2a 20 73 65 74 74 69 6e |Info;../|* settin|
|00003b20| 67 20 69 6e 70 75 74 20 | 63 6f 6c 6f 72 20 74 6f |g input |color to|
|00003b30| 20 62 65 20 61 6e 20 52 | 47 42 20 63 6f 6c 6f 72 | be an R|GB color|
|00003b40| 20 2a 2f 0d 09 63 70 49 | 6e 66 6f 2e 74 68 65 43 | */..cpI|nfo.theC|
|00003b50| 6f 6c 6f 72 2e 63 6f 6c | 6f 72 2e 72 67 62 20 3d |olor.col|or.rgb =|
|00003b60| 20 67 4d 79 52 47 42 43 | 6f 6c 6f 72 3b 0d 09 63 | gMyRGBC|olor;..c|
|00003b70| 70 49 6e 66 6f 2e 74 68 | 65 43 6f 6c 6f 72 2e 70 |pInfo.th|eColor.p|
|00003b80| 72 6f 66 69 6c 65 20 3d | 20 30 4c 3b 0d 09 2f 2a |rofile =| 0L;../*|
|00003b90| 20 6e 6f 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 | no dest|ination |
|00003ba0| 70 72 6f 66 69 6c 65 20 | 2a 2f 0d 09 63 70 49 6e |profile |*/..cpIn|
|00003bb0| 66 6f 2e 64 73 74 50 72 | 6f 66 69 6c 65 20 3d 20 |fo.dstPr|ofile = |
|00003bc0| 30 4c 3b 0d 09 63 70 49 | 6e 66 6f 2e 66 6c 61 67 |0L;..cpI|nfo.flag|
|00003bd0| 73 20 3d 20 41 70 70 49 | 73 43 6f 6c 6f 72 53 79 |s = AppI|sColorSy|
|00003be0| 6e 63 41 77 61 72 65 20 | 7c 20 43 61 6e 4d 6f 64 |ncAware || CanMod|
|00003bf0| 69 66 79 50 61 6c 65 74 | 74 65 20 7c 20 0d 09 09 |ifyPalet|te | ...|
|00003c00| 09 09 09 09 43 61 6e 41 | 6e 69 6d 61 74 65 50 61 |....CanA|nimatePa|
|00003c10| 6c 65 74 74 65 3b 0d 09 | 2f 2a 20 63 65 6e 74 65 |lette;..|/* cente|
|00003c20| 72 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 6f 6e 20 |r dialog| box on |
|00003c30| 74 68 65 20 64 65 65 70 | 65 73 74 20 63 6f 6c 6f |the deep|est colo|
|00003c40| 72 20 73 63 72 65 65 6e | 20 2a 2f 0d 09 63 70 49 |r screen| */..cpI|
|00003c50| 6e 66 6f 2e 70 6c 61 63 | 65 57 68 65 72 65 20 3d |nfo.plac|eWhere =|
|00003c60| 20 6b 44 65 65 70 65 73 | 74 43 6f 6c 6f 72 53 63 | kDeepes|tColorSc|
|00003c70| 72 65 65 6e 3b 0d 09 2f | 2a 20 75 73 65 20 74 68 |reen;../|* use th|
|00003c80| 65 20 73 79 73 74 65 6d | 20 64 65 66 61 75 6c 74 |e system| default|
|00003c90| 20 70 69 63 6b 65 72 20 | 2a 2f 0d 09 63 70 49 6e | picker |*/..cpIn|
|00003ca0| 66 6f 2e 70 69 63 6b 65 | 72 54 79 70 65 20 3d 20 |fo.picke|rType = |
|00003cb0| 30 4c 3b 0d 09 2f 2a 20 | 69 6e 73 74 61 6c 6c 20 |0L;../* |install |
|00003cc0| 65 76 65 6e 74 20 66 69 | 6c 74 65 72 20 61 6e 64 |event fi|lter and|
|00003cd0| 20 63 6f 6c 6f 72 2d 63 | 68 61 6e 67 65 64 20 66 | color-c|hanged f|
|00003ce0| 75 6e 63 74 69 6f 6e 73 | 20 2a 2f 0d 09 63 70 49 |unctions| */..cpI|
|00003cf0| 6e 66 6f 2e 65 76 65 6e | 74 50 72 6f 63 20 3d 20 |nfo.even|tProc = |
|00003d00| 4d 79 45 76 65 6e 74 50 | 72 6f 63 3b 0d 09 63 70 |MyEventP|roc;..cp|
|00003d10| 49 6e 66 6f 2e 63 6f 6c | 6f 72 50 72 6f 63 20 3d |Info.col|orProc =|
|00003d20| 20 4d 79 43 6f 6c 6f 72 | 43 68 61 6e 67 65 64 50 | MyColor|ChangedP|
|00003d30| 72 6f 63 3b 0d 09 63 70 | 49 6e 66 6f 2e 63 6f 6c |roc;..cp|Info.col|
|00003d40| 6f 72 50 72 6f 63 44 61 | 74 61 20 3d 20 30 4c 3b |orProcDa|ta = 0L;|
|00003d50| 0d 09 73 74 72 63 70 79 | 28 63 70 49 6e 66 6f 2e |..strcpy|(cpInfo.|
|00003d60| 70 72 6f 6d 70 74 2c 22 | 5c 70 43 68 6f 6f 73 65 |prompt,"|\pChoose|
|00003d70| 20 61 20 68 69 67 68 6c | 69 67 68 74 20 63 6f 6c | a highl|ight col|
|00003d80| 6f 72 3a 22 29 3b 0d 09 | 2f 2a 20 64 65 73 63 72 |or:");..|/* descr|
|00003d90| 69 62 65 20 74 68 65 20 | 45 64 69 74 20 6d 65 6e |ibe the |Edit men|
|00003da0| 75 20 66 6f 72 20 43 6f | 6c 6f 72 20 50 69 63 6b |u for Co|lor Pick|
|00003db0| 65 72 20 4d 61 6e 61 67 | 65 72 20 2a 2f 0d 09 63 |er Manag|er */..c|
|00003dc0| 70 49 6e 66 6f 2e 6d 49 | 6e 66 6f 2e 65 64 69 74 |pInfo.mI|nfo.edit|
|00003dd0| 4d 65 6e 75 49 44 20 3d | 20 6b 4d 79 45 64 69 74 |MenuID =| kMyEdit|
|00003de0| 4d 65 6e 75 49 44 3b 0d | 09 63 70 49 6e 66 6f 2e |MenuID;.|.cpInfo.|
|00003df0| 6d 49 6e 66 6f 2e 63 75 | 74 49 74 65 6d 20 3d 20 |mInfo.cu|tItem = |
|00003e00| 6b 4d 79 43 75 74 49 74 | 65 6d 3b 0d 09 63 70 49 |kMyCutIt|em;..cpI|
|00003e10| 6e 66 6f 2e 6d 49 6e 66 | 6f 2e 63 6f 70 79 49 74 |nfo.mInf|o.copyIt|
|00003e20| 65 6d 20 3d 20 6b 4d 79 | 43 6f 70 79 49 74 65 6d |em = kMy|CopyItem|
|00003e30| 3b 0d 09 63 70 49 6e 66 | 6f 2e 6d 49 6e 66 6f 2e |;..cpInf|o.mInfo.|
|00003e40| 70 61 73 74 65 49 74 65 | 6d 20 3d 20 6b 4d 79 50 |pasteIte|m = kMyP|
|00003e50| 61 73 74 65 49 74 65 6d | 3b 0d 09 63 70 49 6e 66 |asteItem|;..cpInf|
|00003e60| 6f 2e 6d 49 6e 66 6f 2e | 63 6c 65 61 72 49 74 65 |o.mInfo.|clearIte|
|00003e70| 6d 20 3d 20 6b 4d 79 43 | 6c 65 61 72 49 74 65 6d |m = kMyC|learItem|
|00003e80| 3b 0d 09 63 70 49 6e 66 | 6f 2e 6d 49 6e 66 6f 2e |;..cpInf|o.mInfo.|
|00003e90| 75 6e 64 6f 49 74 65 6d | 20 3d 20 6b 4d 79 55 6e |undoItem| = kMyUn|
|00003ea0| 64 6f 49 74 65 6d 3b 0d | 09 2f 2a 20 64 69 73 70 |doItem;.|./* disp|
|00003eb0| 6c 61 79 20 64 69 61 6c | 6f 67 20 62 6f 78 20 74 |lay dial|og box t|
|00003ec0| 6f 20 61 6c 6c 6f 77 20 | 75 73 65 72 20 74 6f 20 |o allow |user to |
|00003ed0| 63 68 6f 6f 73 65 20 61 | 20 63 6f 6c 6f 72 20 2a |choose a| color *|
|00003ee0| 2f 0d 09 69 66 28 50 69 | 63 6b 43 6f 6c 6f 72 28 |/..if(Pi|ckColor(|
|00003ef0| 26 63 70 49 6e 66 6f 29 | 20 3d 3d 20 6e 6f 45 72 |&cpInfo)| == noEr|
|00003f00| 72 20 26 26 20 63 70 49 | 6e 66 6f 2e 6e 65 77 43 |r && cpI|nfo.newC|
|00003f10| 6f 6c 6f 72 43 68 6f 73 | 65 6e 29 0d 09 09 2f 2a |olorChos|en).../*|
|00003f20| 20 75 73 65 20 74 68 69 | 73 20 6e 65 77 20 63 6f | use thi|s new co|
|00003f30| 6c 6f 72 20 2a 2f 0d 09 | 09 44 6f 4e 65 77 43 6f |lor */..|.DoNewCo|
|00003f40| 6c 6f 72 28 26 63 70 49 | 6e 66 6f 2e 74 68 65 43 |lor(&cpI|nfo.theC|
|00003f50| 6f 6c 6f 72 29 3b 0d 7d | 0d 57 68 65 6e 20 74 68 |olor);.}|.When th|
|00003f60| 65 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 69 73 20 |e dialog| box is |
|00003f70| 66 69 72 73 74 20 64 69 | 73 70 6c 61 79 65 64 2c |first di|splayed,|
|00003f80| 20 74 68 65 20 63 6f 6c | 6f 72 20 74 68 61 74 20 | the col|or that |
|00003f90| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00003fa0| 20 73 70 65 63 69 66 69 | 65 73 20 69 6e 20 74 68 | specifi|es in th|
|00003fb0| 65 20 66 69 65 6c 64 20 | 74 68 65 43 6f 6c 6f 72 |e field |theColor|
|00003fc0| 20 69 73 20 75 73 65 64 | 20 61 73 20 74 68 65 20 | is used| as the |
|00003fd0| 6f 72 69 67 69 6e 61 6c | 20 63 6f 6c 6f 72 20 66 |original| color f|
|00003fe0| 72 6f 6d 20 77 68 69 63 | 68 20 74 68 65 20 75 73 |rom whic|h the us|
|00003ff0| 65 72 20 62 65 67 69 6e | 73 20 74 6f 20 65 64 69 |er begin|s to edi|
|00004000| 74 2e 20 55 70 6f 6e 20 | 63 6f 6d 70 6c 65 74 69 |t. Upon |completi|
|00004010| 6f 6e 2c 20 50 69 63 6b | 43 6f 6c 6f 72 20 73 65 |on, Pick|Color se|
|00004020| 74 73 20 74 68 69 73 20 | 66 69 65 6c 64 20 74 6f |ts this |field to|
|00004030| 20 74 68 65 20 6c 61 73 | 74 20 63 6f 6c 6f 72 20 | the las|t color |
|00004040| 74 68 61 74 20 74 68 65 | 20 75 73 65 72 20 63 68 |that the| user ch|
|00004050| 6f 73 65 20 62 65 66 6f | 72 65 20 63 6c 69 63 6b |ose befo|re click|
|00004060| 69 6e 67 20 4f 4b 2e 20 | 41 6c 74 68 6f 75 67 68 |ing OK. |Although|
|00004070| 20 74 68 65 20 6e 65 77 | 20 63 6f 6c 6f 72 73 20 | the new| colors |
|00004080| 73 65 6c 65 63 74 65 64 | 20 62 79 20 74 68 65 20 |selected| by the |
|00004090| 75 73 65 72 20 6d 61 79 | 20 76 61 72 79 20 77 69 |user may| vary wi|
|000040a0| 64 65 6c 79 2c 20 74 68 | 65 20 6f 72 69 67 69 6e |dely, th|e origin|
|000040b0| 61 6c 20 63 6f 6c 6f 72 | 20 72 65 6d 61 69 6e 73 |al color| remains|
|000040c0| 20 66 69 78 65 64 20 66 | 6f 72 20 63 6f 6d 70 61 | fixed f|or compa|
|000040d0| 72 69 73 6f 6e 2e 20 46 | 69 67 75 72 65 20 31 2d |rison. F|igure 1-|
|000040e0| 31 20 6f 6e 20 70 61 67 | 65 20 31 2d 36 20 73 68 |1 on pag|e 1-6 sh|
|000040f0| 6f 77 73 20 68 6f 77 20 | 74 68 65 20 73 74 61 6e |ows how |the stan|
|00004100| 64 61 72 64 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 |dard dia|log box |
|00004110| 64 69 73 70 6c 61 79 73 | 20 62 6f 74 68 20 74 68 |displays| both th|
|00004120| 65 20 6f 72 69 67 69 6e | 61 6c 20 61 6e 64 20 74 |e origin|al and t|
|00004130| 68 65 20 6e 65 77 20 63 | 6f 6c 6f 72 73 2e 0d 0d |he new c|olors...|
|00004140| 44 65 66 69 6e 69 6e 67 | 20 61 6e 20 45 76 65 6e |Defining| an Even|
|00004150| 74 20 46 69 6c 74 65 72 | 20 46 75 6e 63 74 69 6f |t Filter| Functio|
|00004160| 6e 0d 0d 41 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |n..Appli|cations |
|00004170| 63 61 6e 20 67 65 6e 65 | 72 61 6c 6c 79 20 61 6c |can gene|rally al|
|00004180| 6c 6f 77 20 74 68 65 20 | 43 6f 6c 6f 72 20 50 69 |low the |Color Pi|
|00004190| 63 6b 65 72 20 4d 61 6e | 61 67 65 72 20 74 6f 20 |cker Man|ager to |
|000041a0| 68 61 6e 64 6c 65 20 61 | 6c 6c 20 65 76 65 6e 74 |handle a|ll event|
|000041b0| 73 20 74 68 61 74 20 6d | 69 67 68 74 20 6f 63 63 |s that m|ight occ|
|000041c0| 75 72 20 77 68 69 6c 65 | 20 64 69 73 70 6c 61 79 |ur while| display|
|000041d0| 69 6e 67 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |ing the |standard|
|000041e0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2e 20 55 70 64 | dialog |box. Upd|
|000041f0| 61 74 65 20 65 76 65 6e | 74 73 20 61 72 65 20 65 |ate even|ts are e|
|00004200| 78 63 65 70 74 69 6f 6e | 73 20 74 6f 20 74 68 69 |xception|s to thi|
|00004210| 73 2c 20 68 6f 77 65 76 | 65 72 2e 20 0d 54 68 65 |s, howev|er. .The|
|00004220| 20 50 69 63 6b 43 6f 6c | 6f 72 20 66 75 6e 63 74 | PickCol|or funct|
|00004230| 69 6f 6e 20 63 61 6c 6c | 73 20 74 68 65 20 44 69 |ion call|s the Di|
|00004240| 61 6c 6f 67 20 4d 61 6e | 61 67 65 72 20 66 75 6e |alog Man|ager fun|
|00004250| 63 74 69 6f 6e 20 44 69 | 61 6c 6f 67 53 65 6c 65 |ction Di|alogSele|
|00004260| 63 74 2e 20 41 73 20 64 | 65 73 63 72 69 62 65 64 |ct. As d|escribed|
|00004270| 20 69 6e 20 74 68 65 20 | 63 68 61 70 74 65 72 20 | in the |chapter |
|00004280| d2 44 69 61 6c 6f 67 20 | 4d 61 6e 61 67 65 72 d3 |.Dialog |Manager.|
|00004290| 20 69 6e 20 49 6e 73 69 | 64 65 20 4d 61 63 69 6e | in Insi|de Macin|
|000042a0| 74 6f 73 68 3a 20 4d 61 | 63 69 6e 74 6f 73 68 20 |tosh: Ma|cintosh |
|000042b0| 54 6f 6f 6c 62 6f 78 20 | 45 73 73 65 6e 74 69 61 |Toolbox |Essentia|
|000042c0| 6c 73 2c 20 44 69 61 6c | 6f 67 53 65 6c 65 63 74 |ls, Dial|ogSelect|
|000042d0| 20 64 6f 65 73 20 6e 6f | 74 20 61 6c 6c 6f 77 20 | does no|t allow |
|000042e0| 62 61 63 6b 67 72 6f 75 | 6e 64 20 77 69 6e 64 6f |backgrou|nd windo|
|000042f0| 77 73 20 74 6f 20 72 65 | 63 65 69 76 65 20 75 70 |ws to re|ceive up|
|00004300| 64 61 74 65 20 65 76 65 | 6e 74 73 3b 20 74 68 65 |date eve|nts; the|
|00004310| 72 65 66 6f 72 65 2c 20 | 61 74 20 61 20 6d 69 6e |refore, |at a min|
|00004320| 69 6d 75 6d 2c 20 79 6f | 75 72 20 65 76 65 6e 74 |imum, yo|ur event|
|00004330| 20 66 69 6c 74 65 72 20 | 66 75 6e 63 74 69 6f 6e | filter |function|
|00004340| 20 73 68 6f 75 6c 64 20 | 68 61 6e 64 6c 65 20 75 | should |handle u|
|00004350| 70 64 61 74 65 20 65 76 | 65 6e 74 73 2e 20 49 66 |pdate ev|ents. If|
|00004360| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00004370| 6e 20 6e 65 65 64 73 20 | 74 6f 20 66 69 6c 74 65 |n needs |to filte|
|00004380| 72 20 6f 72 20 70 72 65 | 70 72 6f 63 65 73 73 20 |r or pre|process |
|00004390| 6f 74 68 65 72 20 65 76 | 65 6e 74 73 20 62 65 66 |other ev|ents bef|
|000043a0| 6f 72 65 20 44 69 61 6c | 6f 67 53 65 6c 65 63 74 |ore Dial|ogSelect|
|000043b0| 20 68 61 6e 64 6c 65 73 | 20 74 68 65 6d 2c 20 79 | handles| them, y|
|000043c0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|000043d0| 73 68 6f 75 6c 64 20 64 | 6f 20 73 6f 20 69 6e 20 |should d|o so in |
|000043e0| 69 74 73 20 65 76 65 6e | 74 20 66 69 6c 74 65 72 |its even|t filter|
|000043f0| 20 66 75 6e 63 74 69 6f | 6e 2e 20 0d 41 73 20 79 | functio|n. .As y|
|00004400| 6f 75 20 63 61 6e 20 73 | 65 65 20 69 6e 20 4c 69 |ou can s|ee in Li|
|00004410| 73 74 69 6e 67 20 31 2d | 31 2c 20 79 6f 75 72 20 |sting 1-|1, your |
|00004420| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 73 68 6f 75 |applicat|ion shou|
|00004430| 6c 64 20 73 75 70 70 6c | 79 20 74 68 65 20 65 76 |ld suppl|y the ev|
|00004440| 65 6e 74 50 72 6f 63 20 | 66 69 65 6c 64 20 6f 66 |entProc |field of|
|00004450| 20 74 68 65 20 50 69 63 | 6b 43 6f 6c 6f 72 20 70 | the Pic|kColor p|
|00004460| 61 72 61 6d 65 74 65 72 | 20 62 6c 6f 63 6b 20 77 |arameter| block w|
|00004470| 69 74 68 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |ith a po|inter to|
|00004480| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2d | an appl|ication-|
|00004490| 64 65 66 69 6e 65 64 20 | 66 69 6c 74 65 72 20 66 |defined |filter f|
|000044a0| 75 6e 63 74 69 6f 6e 20 | 66 6f 72 20 68 61 6e 64 |unction |for hand|
|000044b0| 6c 69 6e 67 20 75 73 65 | 72 20 65 76 65 6e 74 73 |ling use|r events|
|000044c0| 20 6d 65 61 6e 74 20 66 | 6f 72 20 79 6f 75 72 20 | meant f|or your |
|000044d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 49 66 20 |applicat|ion. If |
|000044e0| 79 6f 75 72 20 66 69 6c | 74 65 72 20 66 75 6e 63 |your fil|ter func|
|000044f0| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 74 72 75 |tion ret|urns tru|
|00004500| 65 2c 20 74 68 65 20 43 | 6f 6c 6f 72 20 50 69 63 |e, the C|olor Pic|
|00004510| 6b 65 72 20 4d 61 6e 61 | 67 65 72 20 77 6f 6e d5 |ker Mana|ger won.|
|00004520| 74 20 70 72 6f 63 65 73 | 73 20 74 68 65 20 65 76 |t proces|s the ev|
|00004530| 65 6e 74 20 61 6e 79 20 | 66 75 72 74 68 65 72 2e |ent any |further.|
|00004540| 20 49 66 20 79 6f 75 72 | 20 66 69 6c 74 65 72 20 | If your| filter |
|00004550| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00004560| 20 66 61 6c 73 65 2c 20 | 74 68 65 20 43 6f 6c 6f | false, |the Colo|
|00004570| 72 20 50 69 63 6b 65 72 | 20 4d 61 6e 61 67 65 72 |r Picker| Manager|
|00004580| 20 68 61 6e 64 6c 65 73 | 20 74 68 65 20 65 76 65 | handles| the eve|
|00004590| 6e 74 20 61 73 20 69 66 | 20 69 74 20 77 65 72 65 |nt as if| it were|
|000045a0| 20 6d 65 61 6e 74 20 66 | 6f 72 20 74 68 65 20 63 | meant f|or the c|
|000045b0| 6f 6c 6f 72 20 70 69 63 | 6b 65 72 2e 20 4c 69 73 |olor pic|ker. Lis|
|000045c0| 74 69 6e 67 20 31 2d 32 | 20 69 6c 6c 75 73 74 72 |ting 1-2| illustr|
|000045d0| 61 74 65 73 20 73 75 63 | 68 20 61 6e 20 65 76 65 |ates suc|h an eve|
|000045e0| 6e 74 20 66 69 6c 74 65 | 72 20 66 75 6e 63 74 69 |nt filte|r functi|
|000045f0| 6f 6e 2e 0d 0d 4c 69 73 | 74 69 6e 67 20 31 2d 32 |on...Lis|ting 1-2|
|00004600| 09 41 6e 20 65 76 65 6e | 74 20 66 69 6c 74 65 72 |.An even|t filter|
|00004610| 20 66 75 6e 63 74 69 6f | 6e 20 66 6f 72 20 74 68 | functio|n for th|
|00004620| 65 20 50 69 63 6b 43 6f | 6c 6f 72 20 66 75 6e 63 |e PickCo|lor func|
|00004630| 74 69 6f 6e 0d 0d 70 61 | 73 63 61 6c 20 42 6f 6f |tion..pa|scal Boo|
|00004640| 6c 65 61 6e 20 4d 79 50 | 69 63 6b 65 72 45 76 65 |lean MyP|ickerEve|
|00004650| 6e 74 46 69 6c 74 65 72 | 46 75 6e 63 74 69 6f 6e |ntFilter|Function|
|00004660| 20 28 45 76 65 6e 74 52 | 65 63 6f 72 64 20 2a 65 | (EventR|ecord *e|
|00004670| 76 65 6e 74 29 20 7b 0d | 09 2f 2a 20 72 65 74 75 |vent) {.|./* retu|
|00004680| 72 6e 69 6e 67 20 66 61 | 6c 73 65 20 73 65 6e 64 |rning fa|lse send|
|00004690| 73 20 65 76 65 6e 74 73 | 20 74 6f 20 74 68 65 20 |s events| to the |
|000046a0| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 4d 61 6e |Color Pi|cker Man|
|000046b0| 61 67 65 72 20 2a 2f 0d | 09 42 6f 6f 6c 65 61 6e |ager */.|.Boolean|
|000046c0| 20 68 61 6e 64 6c 65 64 | 20 3d 20 66 61 6c 73 65 | handled| = false|
|000046d0| 3b 0d 09 73 77 69 74 63 | 68 28 65 76 65 6e 74 2d |;..switc|h(event-|
|000046e0| 3e 77 68 61 74 29 20 7b | 0d 09 09 63 61 73 65 20 |>what) {|...case |
|000046f0| 75 70 64 61 74 65 45 76 | 74 3a 0d 09 09 09 09 44 |updateEv|t:.....D|
|00004700| 6f 54 68 65 55 70 64 61 | 74 65 28 28 57 69 6e 64 |oTheUpda|te((Wind|
|00004710| 6f 77 50 74 72 29 20 65 | 76 65 6e 74 2d 3e 6d 65 |owPtr) e|vent->me|
|00004720| 73 73 61 67 65 29 3b 0d | 09 09 09 09 68 61 6e 64 |ssage);.|....hand|
|00004730| 6c 65 64 20 3d 20 74 72 | 75 65 3b 0d 09 09 09 7d |led = tr|ue;....}|
|00004740| 0d 09 7d 0d 09 72 65 74 | 75 72 6e 20 68 61 6e 64 |..}..ret|urn hand|
|00004750| 6c 65 64 3b 0d 7d 0d 0d | 44 65 66 69 6e 69 6e 67 |led;.}..|Defining|
|00004760| 20 61 20 43 6f 6c 6f 72 | 20 43 68 61 6e 67 65 64 | a Color| Changed|
|00004770| 20 46 75 6e 63 74 69 6f | 6e 0d 0d 41 73 20 73 68 | Functio|n..As sh|
|00004780| 6f 77 6e 20 69 6e 20 4c | 69 73 74 69 6e 67 20 31 |own in L|isting 1|
|00004790| 2d 31 2c 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |-1, your| applica|
|000047a0| 74 69 6f 6e 20 63 61 6e | 20 73 75 70 70 6c 79 20 |tion can| supply |
|000047b0| 74 68 65 20 63 6f 6c 6f | 72 50 72 6f 63 20 66 69 |the colo|rProc fi|
|000047c0| 65 6c 64 20 6f 66 20 74 | 68 65 20 50 69 63 6b 43 |eld of t|he PickC|
|000047d0| 6f 6c 6f 72 20 70 61 72 | 61 6d 65 74 65 72 20 62 |olor par|ameter b|
|000047e0| 6c 6f 63 6b 20 77 69 74 | 68 20 61 20 70 6f 69 6e |lock wit|h a poin|
|000047f0| 74 65 72 20 74 6f 20 61 | 6e 20 61 70 70 6c 69 63 |ter to a|n applic|
|00004800| 61 74 69 6f 6e 2d 64 65 | 66 69 6e 65 64 20 66 75 |ation-de|fined fu|
|00004810| 6e 63 74 69 6f 6e 20 74 | 68 61 74 20 68 61 6e 64 |nction t|hat hand|
|00004820| 6c 65 73 20 63 6f 6c 6f | 72 20 63 68 61 6e 67 65 |les colo|r change|
|00004830| 73 2e 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |s. This |function|
|00004840| 2c 20 69 6c 6c 75 73 74 | 72 61 74 65 64 20 69 6e |, illust|rated in|
|00004850| 20 70 61 67 65 20 31 2d | 31 31 2c 20 73 68 6f 75 | page 1-|11, shou|
|00004860| 6c 64 20 73 75 70 70 6f | 72 74 20 74 68 65 20 75 |ld suppo|rt the u|
|00004870| 70 64 61 74 69 6e 67 20 | 6f 66 20 63 6f 6c 6f 72 |pdating |of color|
|00004880| 73 20 69 6e 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 |s in a d|ocument |
|00004890| 61 73 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |as the u|ser sele|
|000048a0| 63 74 73 20 74 68 65 6d | 2e 0d 0d 4c 69 73 74 69 |cts them|...Listi|
|000048b0| 6e 67 20 31 2d 33 09 41 | 20 63 6f 6c 6f 72 20 63 |ng 1-3.A| color c|
|000048c0| 68 61 6e 67 65 64 20 66 | 75 6e 63 74 69 6f 6e 0d |hanged f|unction.|
|000048d0| 0d 70 61 73 63 61 6c 20 | 76 6f 69 64 20 4d 79 43 |.pascal |void MyC|
|000048e0| 6f 6c 6f 72 43 68 61 6e | 67 65 64 46 75 6e 63 74 |olorChan|gedFunct|
|000048f0| 69 6f 6e 20 28 6c 6f 6e | 67 20 75 73 65 72 44 61 |ion (lon|g userDa|
|00004900| 74 61 2c 20 50 4d 43 6f | 6c 6f 72 50 74 72 20 6e |ta, PMCo|lorPtr n|
|00004910| 65 77 43 6f 6c 6f 72 29 | 20 7b 0d 09 47 72 61 66 |ewColor)| {..Graf|
|00004920| 50 74 72 20 70 6f 72 74 | 3b 0d 09 43 57 6f 72 6c |Ptr port|;..CWorl|
|00004930| 64 20 63 57 6f 72 6c 64 | 3b 0d 09 43 4d 43 6f 6c |d cWorld|;..CMCol|
|00004940| 6f 72 20 63 6f 6c 6f 72 | 3b 0d 09 43 4d 45 72 72 |or color|;..CMErr|
|00004950| 6f 72 20 63 77 45 72 72 | 6f 72 3b 0d 09 47 65 74 |or cwErr|or;..Get|
|00004960| 50 6f 72 74 28 26 70 6f | 72 74 29 3b 0d 09 53 65 |Port(&po|rt);..Se|
|00004970| 74 50 6f 72 74 28 6d 79 | 44 6f 63 57 69 6e 64 6f |tPort(my|DocWindo|
|00004980| 77 29 3b 0d 09 2f 2a 20 | 64 65 74 65 72 6d 69 6e |w);../* |determin|
|00004990| 65 20 77 68 65 74 68 65 | 72 20 74 68 65 20 63 6f |e whethe|r the co|
|000049a0| 6c 6f 72 20 68 61 73 20 | 61 20 70 72 6f 66 69 6c |lor has |a profil|
|000049b0| 65 20 2a 2f 0d 09 69 66 | 28 6e 65 77 43 6f 6c 6f |e */..if|(newColo|
|000049c0| 72 2d 3e 70 72 6f 66 69 | 6c 65 29 20 7b 0d 09 09 |r->profi|le) {...|
|000049d0| 2f 2a 20 63 6f 6e 76 65 | 72 74 20 74 68 65 20 63 |/* conve|rt the c|
|000049e0| 6f 6c 6f 72 20 74 6f 20 | 61 6e 20 52 47 42 20 63 |olor to |an RGB c|
|000049f0| 6f 6c 6f 72 20 2a 2f 0d | 09 09 63 77 45 72 72 6f |olor */.|..cwErro|
|00004a00| 72 20 3d 20 43 57 4e 65 | 77 43 6f 6c 6f 72 57 6f |r = CWNe|wColorWo|
|00004a10| 72 6c 64 28 26 63 57 6f | 72 6c 64 2c 20 6e 65 77 |rld(&cWo|rld, new|
|00004a20| 43 6f 6c 6f 72 2d 3e 70 | 72 6f 66 69 6c 65 2c 20 |Color->p|rofile, |
|00004a30| 30 4c 29 3b 0d 09 09 69 | 66 28 63 77 45 72 72 6f |0L);...i|f(cwErro|
|00004a40| 72 20 3d 3d 20 6e 6f 45 | 72 72 20 7c 7c 20 63 77 |r == noE|rr || cw|
|00004a50| 45 72 72 6f 72 20 3d 3d | 20 43 4d 50 72 6f 66 69 |Error ==| CMProfi|
|00004a60| 6c 65 73 49 64 65 6e 74 | 69 63 61 6c 29 20 7b 0d |lesIdent|ical) {.|
|00004a70| 09 09 09 63 6f 6c 6f 72 | 20 3d 20 6e 65 77 43 6f |...color| = newCo|
|00004a80| 6c 6f 72 2d 3e 63 6f 6c | 6f 72 3b 0d 09 09 09 43 |lor->col|or;....C|
|00004a90| 57 4d 61 74 63 68 43 6f | 6c 6f 72 73 28 63 57 6f |WMatchCo|lors(cWo|
|00004aa0| 72 6c 64 2c 20 26 63 6f | 6c 6f 72 2c 20 31 29 3b |rld, &co|lor, 1);|
|00004ab0| 0d 09 09 09 43 57 44 69 | 73 70 6f 73 65 43 6f 6c |....CWDi|sposeCol|
|00004ac0| 6f 72 57 6f 72 6c 64 28 | 63 57 6f 72 6c 64 29 3b |orWorld(|cWorld);|
|00004ad0| 0d 09 09 7d 0d 09 7d 20 | 65 6c 73 65 0d 09 09 63 |...}..} |else...c|
|00004ae0| 6f 6c 6f 72 2e 72 67 62 | 20 3d 20 6e 65 77 43 6f |olor.rgb| = newCo|
|00004af0| 6c 6f 72 2d 3e 63 6f 6c | 6f 72 2e 72 67 62 3b 0d |lor->col|or.rgb;.|
|00004b00| 09 2f 2a 20 63 68 61 6e | 67 65 20 74 68 65 20 63 |./* chan|ge the c|
|00004b10| 6f 6c 6f 72 20 6f 66 20 | 63 75 72 72 65 6e 74 6c |olor of |currentl|
|00004b20| 79 20 68 69 67 68 6c 69 | 67 68 74 65 64 20 6f 62 |y highli|ghted ob|
|00004b30| 6a 65 63 74 73 20 2a 2f | 0d 09 4d 79 43 68 61 6e |jects */|..MyChan|
|00004b40| 67 65 48 69 67 68 6c 69 | 67 68 74 28 26 63 6f 6c |geHighli|ght(&col|
|00004b50| 6f 72 2e 72 67 62 29 3b | 0d 09 53 65 74 50 6f 72 |or.rgb);|..SetPor|
|00004b60| 74 28 70 6f 72 74 29 3b | 0d 7d 0d 49 6e 20 74 68 |t(port);|.}.In th|
|00004b70| 69 73 20 65 78 61 6d 70 | 6c 65 2c 20 69 74 20 69 |is examp|le, it i|
|00004b80| 73 20 61 73 73 75 6d 65 | 64 20 74 68 61 74 20 43 |s assume|d that C|
|00004b90| 6f 6c 6f 72 53 79 6e 63 | 20 69 73 20 69 6e 73 74 |olorSync| is inst|
|00004ba0| 61 6c 6c 65 64 20 62 65 | 63 61 75 73 65 20 74 68 |alled be|cause th|
|00004bb0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 65 |e applic|ation se|
|00004bc0| 74 73 20 74 68 65 20 41 | 70 70 49 73 43 6f 6c 6f |ts the A|ppIsColo|
|00004bd0| 72 53 79 6e 63 41 77 61 | 72 65 20 66 6c 61 67 20 |rSyncAwa|re flag |
|00004be0| 77 68 65 6e 20 63 61 6c | 6c 69 6e 67 20 50 69 63 |when cal|ling Pic|
|00004bf0| 6b 43 6f 6c 6f 72 2e 20 | 42 65 63 61 75 73 65 20 |kColor. |Because |
|00004c00| 61 20 6e 6f 6e 2d 52 47 | 42 20 63 6f 6c 6f 72 20 |a non-RG|B color |
|00004c10| 6d 69 67 68 74 20 63 6f | 6d 65 20 62 61 63 6b 20 |might co|me back |
|00004c20| 66 72 6f 6d 20 74 68 65 | 20 63 6f 6c 6f 72 20 70 |from the| color p|
|00004c30| 69 63 6b 65 72 2c 20 74 | 68 69 73 20 65 78 61 6d |icker, t|his exam|
|00004c40| 70 6c 65 20 75 73 65 73 | 20 43 6f 6c 6f 72 53 79 |ple uses| ColorSy|
|00004c50| 6e 63 20 66 75 6e 63 74 | 69 6f 6e 73 20 74 6f 20 |nc funct|ions to |
|00004c60| 63 6f 6e 76 65 72 74 20 | 74 68 65 20 63 6f 6c 6f |convert |the colo|
|00004c70| 72 20 74 6f 20 61 6e 20 | 52 47 42 20 63 6f 6c 6f |r to an |RGB colo|
|00004c80| 72 2e 20 53 65 65 20 74 | 68 65 20 63 68 61 70 74 |r. See t|he chapt|
|00004c90| 65 72 20 d2 43 6f 6c 6f | 72 53 79 6e 63 20 55 74 |er .Colo|rSync Ut|
|00004ca0| 69 6c 69 74 69 65 73 d3 | 20 66 6f 72 20 69 6e 66 |ilities.| for inf|
|00004cb0| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00004cc0| 68 65 20 43 57 4e 65 77 | 43 6f 6c 6f 72 57 6f 72 |he CWNew|ColorWor|
|00004cd0| 6c 64 2c 20 43 4d 50 72 | 6f 66 69 6c 65 73 49 64 |ld, CMPr|ofilesId|
|00004ce0| 65 6e 74 69 63 61 6c 2c | 20 43 57 4d 61 74 63 68 |entical,| CWMatch|
|00004cf0| 43 6f 6c 6f 72 73 2c 20 | 61 6e 64 20 43 57 44 69 |Colors, |and CWDi|
|00004d00| 73 70 6f 73 65 43 6f 6c | 6f 72 57 6f 72 6c 64 20 |sposeCol|orWorld |
|00004d10| 66 75 6e 63 74 69 6f 6e | 73 2e 0d 0d 0d 55 73 69 |function|s....Usi|
|00004d20| 6e 67 20 43 75 73 74 6f | 6d 69 7a 65 64 20 44 69 |ng Custo|mized Di|
|00004d30| 61 6c 6f 67 20 42 6f 78 | 65 73 20 66 6f 72 20 43 |alog Box|es for C|
|00004d40| 6f 6c 6f 72 20 50 69 63 | 6b 65 72 73 0d 0d 49 6e |olor Pic|kers..In|
|00004d50| 73 74 65 61 64 20 6f 66 | 20 75 73 69 6e 67 20 74 |stead of| using t|
|00004d60| 68 65 20 50 69 63 6b 43 | 6f 6c 6f 72 20 66 75 6e |he PickC|olor fun|
|00004d70| 63 74 69 6f 6e 2c 20 79 | 6f 75 72 20 61 70 70 6c |ction, y|our appl|
|00004d80| 69 63 61 74 69 6f 6e 20 | 63 61 6e 20 75 73 65 20 |ication |can use |
|00004d90| 74 68 65 20 6c 6f 77 2d | 6c 65 76 65 6c 20 43 6f |the low-|level Co|
|00004da0| 6c 6f 72 20 50 69 63 6b | 65 72 20 4d 61 6e 61 67 |lor Pick|er Manag|
|00004db0| 65 72 20 66 75 6e 63 74 | 69 6f 6e 73 20 74 6f 20 |er funct|ions to |
|00004dc0| 63 72 65 61 74 65 20 61 | 20 74 69 67 68 74 65 72 |create a| tighter|
|00004dd0| 20 69 6e 74 65 67 72 61 | 74 69 6f 6e 20 62 65 74 | integra|tion bet|
|00004de0| 77 65 65 6e 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |ween you|r applic|
|00004df0| 61 74 69 6f 6e 20 61 6e | 64 20 74 68 65 20 64 69 |ation an|d the di|
|00004e00| 61 6c 6f 67 20 62 6f 78 | 20 66 6f 72 20 63 6f 6c |alog box| for col|
|00004e10| 6f 72 20 70 69 63 6b 65 | 72 73 2e 20 46 6f 72 20 |or picke|rs. For |
|00004e20| 65 78 61 6d 70 6c 65 2c | 20 79 6f 75 72 20 61 70 |example,| your ap|
|00004e30| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 63 72 |plicatio|n can cr|
|00004e40| 65 61 74 65 20 61 20 66 | 6c 6f 61 74 69 6e 67 20 |eate a f|loating |
|00004e50| 70 61 6c 65 74 74 65 20 | 69 6e 73 74 65 61 64 20 |palette |instead |
|00004e60| 6f 66 20 61 20 6d 6f 64 | 61 6c 20 64 69 61 6c 6f |of a mod|al dialo|
|00004e70| 67 20 62 6f 78 2e 20 57 | 68 65 6e 20 75 73 69 6e |g box. W|hen usin|
|00004e80| 67 20 74 68 65 20 6c 6f | 77 2d 6c 65 76 65 6c 20 |g the lo|w-level |
|00004e90| 43 6f 6c 6f 72 20 50 69 | 63 6b 65 72 20 4d 61 6e |Color Pi|cker Man|
|00004ea0| 61 67 65 72 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 |ager fun|ctions, |
|00004eb0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00004ec0| 20 73 70 65 63 69 66 69 | 65 73 20 74 68 65 20 74 | specifi|es the t|
|00004ed0| 79 70 65 20 6f 66 20 64 | 69 61 6c 6f 67 20 62 6f |ype of d|ialog bo|
|00004ee0| 78 20 69 6e 20 77 68 69 | 63 68 20 74 6f 20 70 75 |x in whi|ch to pu|
|00004ef0| 74 20 74 68 65 20 63 6f | 6c 6f 72 20 70 69 63 6b |t the co|lor pick|
|00004f00| 65 72 2c 20 61 6e 64 20 | 79 6f 75 72 20 61 70 70 |er, and |your app|
|00004f10| 6c 69 63 61 74 69 6f 6e | 20 6d 61 69 6e 74 61 69 |lication| maintai|
|00004f20| 6e 73 20 74 69 67 68 74 | 65 72 20 63 6f 6e 74 72 |ns tight|er contr|
|00004f30| 6f 6c 20 6f 76 65 72 20 | 74 68 65 20 65 76 65 6e |ol over |the even|
|00004f40| 74 20 6c 6f 6f 70 2e 0d | 59 6f 75 72 20 61 70 70 |t loop..|Your app|
|00004f50| 6c 69 63 61 74 69 6f 6e | 20 63 61 6e 20 63 72 65 |lication| can cre|
|00004f60| 61 74 65 20 74 68 72 65 | 65 20 61 64 64 69 74 69 |ate thre|e additi|
|00004f70| 6f 6e 61 6c 20 74 79 70 | 65 73 20 6f 66 20 63 6f |onal typ|es of co|
|00004f80| 6c 6f 72 20 70 69 63 6b | 65 72 20 64 69 61 6c 6f |lor pick|er dialo|
|00004f90| 67 73 20 77 69 74 68 20 | 74 68 65 20 6c 6f 77 2d |gs with |the low-|
|00004fa0| 6c 65 76 65 6c 20 63 61 | 6c 6c 73 3a 20 73 79 73 |level ca|lls: sys|
|00004fb0| 74 65 6d 2d 6f 77 6e 65 | 64 2c 20 61 70 70 6c 69 |tem-owne|d, appli|
|00004fc0| 63 61 74 69 6f 6e 2d 6f | 77 6e 65 64 2c 20 61 6e |cation-o|wned, an|
|00004fd0| 64 20 63 6f 6c 6f 72 20 | 70 69 63 6b 65 72 d0 6f |d color |picker.o|
|00004fe0| 77 6e 65 64 2e 0d 41 20 | 73 79 73 74 65 6d 2d 6f |wned..A |system-o|
|00004ff0| 77 6e 65 64 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 |wned dia|log box |
|00005000| 66 6f 72 20 63 6f 6c 6f | 72 20 70 69 63 6b 65 72 |for colo|r picker|
|00005010| 73 20 68 61 73 20 74 68 | 65 20 73 61 6d 65 20 64 |s has th|e same d|
|00005020| 69 61 6c 6f 67 20 62 6f | 78 20 69 74 65 6d 73 20 |ialog bo|x items |
|00005030| 61 73 20 74 68 65 20 64 | 69 61 6c 6f 67 20 62 6f |as the d|ialog bo|
|00005040| 78 20 63 72 65 61 74 65 | 64 20 62 79 20 50 69 63 |x create|d by Pic|
|00005050| 6b 43 6f 6c 6f 72 d1 74 | 68 61 74 20 69 73 2c 20 |kColor.t|hat is, |
|00005060| 69 74 20 68 61 73 20 4f | 4b 2c 20 43 61 6e 63 65 |it has O|K, Cance|
|00005070| 6c 2c 20 61 6e 64 20 4d | 6f 72 65 20 43 68 6f 69 |l, and M|ore Choi|
|00005080| 63 65 73 20 62 75 74 74 | 6f 6e 73 2e 20 48 6f 77 |ces butt|ons. How|
|00005090| 65 76 65 72 2c 20 77 69 | 74 68 20 74 68 65 20 6c |ever, wi|th the l|
|000050a0| 6f 77 2d 6c 65 76 65 6c | 20 63 61 6c 6c 73 2c 20 |ow-level| calls, |
|000050b0| 79 6f 75 20 63 61 6e 20 | 6d 61 6b 65 20 74 68 65 |you can |make the|
|000050c0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 61 20 6d 6f | dialog |box a mo|
|000050d0| 76 61 62 6c 65 20 6d 6f | 64 61 6c 20 6f 72 20 6d |vable mo|dal or m|
|000050e0| 6f 64 65 6c 65 73 73 20 | 64 69 61 6c 6f 67 20 62 |odeless |dialog b|
|000050f0| 6f 78 2e 0d 41 70 70 6c | 69 63 61 74 69 6f 6e 2d |ox..Appl|ication-|
|00005100| 6f 77 6e 65 64 20 64 69 | 61 6c 6f 67 20 62 6f 78 |owned di|alog box|
|00005110| 65 73 20 61 72 65 20 73 | 75 70 70 6c 69 65 64 20 |es are s|upplied |
|00005120| 62 79 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 2e |by appli|cations.|
|00005130| 20 59 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 69 | You can| use thi|
|00005140| 73 20 74 79 70 65 20 6f | 66 20 64 69 61 6c 6f 67 |s type o|f dialog|
|00005150| 20 62 6f 78 20 74 6f 20 | 69 6e 74 65 67 72 61 74 | box to |integrat|
|00005160| 65 20 63 6f 6c 6f 72 20 | 70 69 63 6b 65 72 73 20 |e color |pickers |
|00005170| 77 69 74 68 20 6f 74 68 | 65 72 20 77 69 6e 64 6f |with oth|er windo|
|00005180| 77 20 66 65 61 74 75 72 | 65 73 20 6f 66 20 79 6f |w featur|es of yo|
|00005190| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6f |ur appli|cation o|
|000051a0| 72 20 74 6f 20 65 78 74 | 65 6e 64 20 74 68 65 20 |r to ext|end the |
|000051b0| 63 6f 6e 74 72 6f 6c 73 | 20 66 6f 72 20 63 6f 6c |controls| for col|
|000051c0| 6f 72 20 70 69 63 6b 65 | 72 73 2e 20 46 6f 72 20 |or picke|rs. For |
|000051d0| 65 78 61 6d 70 6c 65 2c | 20 79 6f 75 20 63 6f 75 |example,| you cou|
|000051e0| 6c 64 20 61 64 64 20 63 | 6f 6e 74 72 6f 6c 73 20 |ld add c|ontrols |
|000051f0| 74 6f 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |to your |applicat|
|00005200| 69 6f 6e 2d 6f 77 6e 65 | 64 20 64 69 61 6c 6f 67 |ion-owne|d dialog|
|00005210| 20 62 6f 78 20 74 68 61 | 74 20 61 6c 6c 6f 77 20 | box tha|t allow |
|00005220| 74 68 65 20 75 73 65 72 | 20 74 6f 20 61 6c 74 65 |the user| to alte|
|00005230| 72 20 74 68 65 20 73 74 | 79 6c 65 20 6f 66 20 61 |r the st|yle of a|
|00005240| 6e 20 6f 62 6a 65 63 74 | 20 61 73 20 77 65 6c 6c |n object| as well|
|00005250| 20 61 73 20 69 74 73 20 | 63 6f 6c 6f 72 2e 0d 41 | as its |color..A|
|00005260| 20 63 6f 6c 6f 72 20 70 | 69 63 6b 65 72 d0 6f 77 | color p|icker.ow|
|00005270| 6e 65 64 20 64 69 61 6c | 6f 67 20 62 6f 78 20 69 |ned dial|og box i|
|00005280| 73 20 63 72 65 61 74 65 | 64 20 62 79 20 74 68 65 |s create|d by the|
|00005290| 20 63 6f 6c 6f 72 20 70 | 69 63 6b 65 72 20 69 74 | color p|icker it|
|000052a0| 73 65 6c 66 2e 20 43 72 | 65 61 74 69 6e 67 20 69 |self. Cr|eating i|
|000052b0| 74 73 20 6f 77 6e 20 64 | 69 61 6c 6f 67 20 62 6f |ts own d|ialog bo|
|000052c0| 78 20 67 69 76 65 73 20 | 61 20 63 6f 6c 6f 72 20 |x gives |a color |
|000052d0| 70 69 63 6b 65 72 20 74 | 68 65 20 66 6c 65 78 69 |picker t|he flexi|
|000052e0| 62 69 6c 69 74 79 20 6f | 66 20 73 70 65 63 69 66 |bility o|f specif|
|000052f0| 79 69 6e 67 20 74 68 65 | 20 73 69 7a 65 20 61 6e |ying the| size an|
|00005300| 64 20 73 68 61 70 65 20 | 6f 66 20 74 68 65 20 63 |d shape |of the c|
|00005310| 6f 6c 6f 72 20 70 69 63 | 6b 65 72 20 28 63 6f 6c |olor pic|ker (col|
|00005320| 6f 72 20 70 69 63 6b 65 | 72 73 20 69 6e 20 73 79 |or picke|rs in sy|
|00005330| 73 74 65 6d 2d 6f 77 6e | 65 64 20 61 6e 64 20 61 |stem-own|ed and a|
|00005340| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 6f 77 6e 65 64 |pplicati|on-owned|
|00005350| 20 64 69 61 6c 6f 67 20 | 62 6f 78 65 73 20 61 72 | dialog |boxes ar|
|00005360| 65 20 61 6c 77 61 79 73 | 20 74 68 65 20 73 61 6d |e always| the sam|
|00005370| 65 20 73 69 7a 65 29 2e | 20 54 68 69 73 20 69 73 |e size).| This is|
|00005380| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 69 6d 70 6c | useful |for impl|
|00005390| 65 6d 65 6e 74 69 6e 67 | 20 63 6f 6c 6f 72 20 70 |ementing| color p|
|000053a0| 69 63 6b 65 72 73 20 69 | 6e 20 66 6c 6f 61 74 69 |ickers i|n floati|
|000053b0| 6e 67 20 70 61 6c 65 74 | 74 65 73 2e 0d 4f 6e 63 |ng palet|tes..Onc|
|000053c0| 65 20 74 68 65 79 d5 72 | 65 20 63 72 65 61 74 65 |e they.r|e create|
|000053d0| 64 2c 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |d, your |applicat|
|000053e0| 69 6f 6e 20 69 6e 74 65 | 72 61 63 74 73 20 77 69 |ion inte|racts wi|
|000053f0| 74 68 20 61 6c 6c 20 74 | 68 72 65 65 20 74 79 70 |th all t|hree typ|
|00005400| 65 73 20 6f 66 20 64 69 | 61 6c 6f 67 20 62 6f 78 |es of di|alog box|
|00005410| 65 73 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 77 |es in th|e same w|
|00005420| 61 79 2e 20 54 68 65 20 | 72 65 73 74 20 6f 66 20 |ay. The |rest of |
|00005430| 74 68 69 73 20 73 65 63 | 74 69 6f 6e 20 64 65 73 |this sec|tion des|
|00005440| 63 72 69 62 65 73 20 68 | 6f 77 20 74 6f 20 63 72 |cribes h|ow to cr|
|00005450| 65 61 74 65 20 65 61 63 | 68 20 74 79 70 65 20 6f |eate eac|h type o|
|00005460| 66 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 61 6e 64 |f dialog| box and|
|00005470| 20 74 68 65 6e 20 64 69 | 73 63 75 73 73 65 73 20 | then di|scusses |
|00005480| 68 6f 77 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |how your| applica|
|00005490| 74 69 6f 6e 20 69 6e 74 | 65 72 61 63 74 73 20 77 |tion int|eracts w|
|000054a0| 69 74 68 20 74 68 65 20 | 63 6f 6c 6f 72 20 70 69 |ith the |color pi|
|000054b0| 63 6b 65 72 20 64 69 73 | 70 6c 61 79 65 64 20 69 |cker dis|played i|
|000054c0| 6e 20 74 68 65 20 64 69 | 61 6c 6f 67 20 62 6f 78 |n the di|alog box|
|000054d0| 2c 20 6e 6f 20 6d 61 74 | 74 65 72 20 77 68 61 74 |, no mat|ter what|
|000054e0| 20 74 79 70 65 20 6f 66 | 20 64 69 61 6c 6f 67 20 | type of| dialog |
|000054f0| 62 6f 78 20 79 6f 75 d5 | 76 65 20 75 73 65 64 2e |box you.|ve used.|
|00005500| 20 0d 0d 43 72 65 61 74 | 69 6e 67 20 44 69 61 6c | ..Creat|ing Dial|
|00005510| 6f 67 20 42 6f 78 65 73 | 20 66 6f 72 20 43 6f 6c |og Boxes| for Col|
|00005520| 6f 72 20 50 69 63 6b 65 | 72 73 0d 0d 54 68 65 20 |or Picke|rs..The |
|00005530| 63 6f 64 65 20 66 6f 72 | 20 63 72 65 61 74 69 6e |code for| creatin|
|00005540| 67 20 61 6c 6c 20 74 68 | 72 65 65 20 64 69 61 6c |g all th|ree dial|
|00005550| 6f 67 20 62 6f 78 65 73 | 20 69 73 20 73 69 6d 69 |og boxes| is simi|
|00005560| 6c 61 72 2e 20 49 6e 20 | 61 6c 6c 20 74 68 72 65 |lar. In |all thre|
|00005570| 65 20 63 61 73 65 73 2c | 20 79 6f 75 72 20 61 70 |e cases,| your ap|
|00005580| 70 6c 69 63 61 74 69 6f | 6e 0d 6e 09 43 72 65 61 |plicatio|n.n.Crea|
|00005590| 74 65 73 20 61 20 73 74 | 72 75 63 74 75 72 65 20 |tes a st|ructure |
|000055a0| 64 65 73 63 72 69 62 69 | 6e 67 20 74 68 65 20 64 |describi|ng the d|
|000055b0| 69 61 6c 6f 67 20 62 6f | 78 20 61 6e 64 20 79 6f |ialog bo|x and yo|
|000055c0| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |ur appli|cation.s|
|000055d0| 20 45 64 69 74 20 6d 65 | 6e 75 2e 20 46 6f 72 20 | Edit me|nu. For |
|000055e0| 61 20 73 79 73 74 65 6d | 2d 6f 77 6e 65 64 20 64 |a system|-owned d|
|000055f0| 69 61 6c 6f 67 20 62 6f | 78 2c 20 74 68 69 73 20 |ialog bo|x, this |
|00005600| 69 73 20 61 20 53 79 73 | 74 65 6d 44 69 61 6c 6f |is a Sys|temDialo|
|00005610| 67 49 6e 66 6f 20 73 74 | 72 75 63 74 75 72 65 2c |gInfo st|ructure,|
|00005620| 20 77 68 69 63 68 20 69 | 73 20 64 65 73 63 72 69 | which i|s descri|
|00005630| 62 65 64 20 6f 6e 20 70 | 61 67 65 20 31 2d 35 36 |bed on p|age 1-56|
|00005640| 3b 20 66 6f 72 20 61 6e | 20 61 70 70 6c 69 63 61 |; for an| applica|
|00005650| 74 69 6f 6e 2d 6f 77 6e | 65 64 20 64 69 61 6c 6f |tion-own|ed dialo|
|00005660| 67 20 62 6f 78 2c 20 74 | 68 69 73 20 69 73 20 61 |g box, t|his is a|
|00005670| 6e 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 44 69 61 |n Applic|ationDia|
|00005680| 6c 6f 67 49 6e 66 6f 20 | 73 74 72 75 63 74 75 72 |logInfo |structur|
|00005690| 65 2c 20 77 68 69 63 68 | 20 64 65 73 63 72 69 62 |e, which| describ|
|000056a0| 65 64 20 6f 6e 20 70 61 | 67 65 20 31 2d 35 38 3b |ed on pa|ge 1-58;|
|000056b0| 20 66 6f 72 20 61 20 63 | 6f 6c 6f 72 20 70 69 63 | for a c|olor pic|
|000056c0| 6b 65 72 2d 6f 77 6e 65 | 64 20 64 69 61 6c 6f 67 |ker-owne|d dialog|
|000056d0| 20 62 6f 78 2c 20 74 68 | 69 73 20 69 73 20 61 20 | box, th|is is a |
|000056e0| 50 69 63 6b 65 72 44 69 | 61 6c 6f 67 49 6e 66 6f |PickerDi|alogInfo|
|000056f0| 20 73 74 72 75 63 74 75 | 72 65 2c 20 77 68 69 63 | structu|re, whic|
|00005700| 68 20 69 73 20 64 65 73 | 63 72 69 62 65 64 20 6f |h is des|cribed o|
|00005710| 6e 20 70 61 67 65 20 31 | 2d 35 38 2e 0d 6e 09 55 |n page 1|-58..n.U|
|00005720| 73 65 73 20 74 68 65 20 | 53 65 74 50 69 63 6b 65 |ses the |SetPicke|
|00005730| 72 43 6f 6c 6f 72 20 66 | 75 6e 63 74 69 6f 6e 20 |rColor f|unction |
|00005740| 28 64 65 73 63 72 69 62 | 65 64 20 6f 6e 20 70 61 |(describ|ed on pa|
|00005750| 67 65 20 31 2d 37 35 29 | 20 74 6f 20 73 65 74 20 |ge 1-75)| to set |
|00005760| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 61 6e 64 |the orig|inal and|
|00005770| 20 6e 65 77 20 63 6f 6c | 6f 72 73 20 66 6f 72 20 | new col|ors for |
|00005780| 74 68 65 20 63 6f 6c 6f | 72 20 70 69 63 6b 65 72 |the colo|r picker|
|00005790| 2e 0d 6e 09 55 73 65 73 | 20 74 68 65 20 53 65 74 |..n.Uses| the Set|
|000057a0| 50 69 63 6b 65 72 50 72 | 6f 6d 70 74 20 66 75 6e |PickerPr|ompt fun|
|000057b0| 63 74 69 6f 6e 20 28 64 | 65 73 63 72 69 62 65 64 |ction (d|escribed|
|000057c0| 20 6f 6e 20 70 61 67 65 | 20 31 2d 37 31 29 20 74 | on page| 1-71) t|
|000057d0| 6f 20 73 70 65 63 69 66 | 79 20 61 20 74 65 78 74 |o specif|y a text|
|000057e0| 20 73 74 72 69 6e 67 20 | 70 72 6f 6d 70 74 69 6e | string |promptin|
|000057f0| 67 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 63 68 |g the us|er to ch|
|00005800| 6f 6f 73 65 20 61 20 63 | 6f 6c 6f 72 20 66 6f 72 |oose a c|olor for|
|00005810| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 75 73 | a parti|cular us|
|00005820| 65 20 28 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |e (for e|xample, |
|00005830| d2 43 68 6f 6f 73 65 20 | 61 20 68 69 67 68 6c 69 |.Choose |a highli|
|00005840| 67 68 74 20 63 6f 6c 6f | 72 d3 29 2e 0d 6e 09 46 |ght colo|r.)..n.F|
|00005850| 6f 72 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |or an ap|plicatio|
|00005860| 6e 2d 6f 77 6e 65 64 20 | 64 69 61 6c 6f 67 20 62 |n-owned |dialog b|
|00005870| 6f 78 2c 20 75 73 65 20 | 74 68 65 20 41 64 64 50 |ox, use |the AddP|
|00005880| 69 63 6b 65 72 54 6f 44 | 69 61 6c 6f 67 20 66 75 |ickerToD|ialog fu|
|00005890| 6e 63 74 69 6f 6e 20 28 | 64 65 73 63 72 69 62 65 |nction (|describe|
|000058a0| 64 20 6f 6e 20 70 61 67 | 65 20 31 2d 37 30 29 20 |d on pag|e 1-70) |
|000058b0| 74 6f 20 61 64 64 20 61 | 20 63 6f 6c 6f 72 20 70 |to add a| color p|
|000058c0| 69 63 6b 65 72 20 74 6f | 20 79 6f 75 72 20 61 70 |icker to| your ap|
|000058d0| 70 6c 69 63 61 74 69 6f | 6e d5 73 20 64 69 61 6c |plicatio|n.s dial|
|000058e0| 6f 67 20 62 6f 78 2e 0d | 6e 09 4d 61 6b 65 73 20 |og box..|n.Makes |
|000058f0| 74 68 65 20 64 69 61 6c | 6f 67 20 62 6f 78 20 76 |the dial|og box v|
|00005900| 69 73 69 62 6c 65 20 28 | 69 66 20 79 6f 75 72 20 |isible (|if your |
|00005910| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 6e 69 74 |applicat|ion init|
|00005920| 69 61 6c 6c 79 20 63 72 | 65 61 74 65 64 20 69 74 |ially cr|eated it|
|00005930| 20 61 73 20 69 6e 76 69 | 73 69 62 6c 65 29 20 77 | as invi|sible) w|
|00005940| 69 74 68 20 74 68 65 20 | 53 65 74 50 69 63 6b 65 |ith the |SetPicke|
|00005950| 72 56 69 73 69 62 69 6c | 69 74 79 20 66 75 6e 63 |rVisibil|ity func|
|00005960| 74 69 6f 6e 20 28 64 65 | 73 63 72 69 62 65 64 20 |tion (de|scribed |
|00005970| 6f 6e 20 70 61 67 65 20 | 31 2d 37 30 29 20 61 6e |on page |1-70) an|
|00005980| 64 2c 20 66 6f 72 20 61 | 6e 20 61 70 70 6c 69 63 |d, for a|n applic|
|00005990| 61 74 69 6f 6e 2d 6f 77 | 6e 65 64 20 64 69 61 6c |ation-ow|ned dial|
|000059a0| 6f 67 20 62 6f 78 2c 20 | 74 68 65 20 57 69 6e 64 |og box, |the Wind|
|000059b0| 6f 77 20 4d 61 6e 61 67 | 65 72 20 66 75 6e 63 74 |ow Manag|er funct|
|000059c0| 69 6f 6e 20 53 68 6f 77 | 57 69 6e 64 6f 77 20 28 |ion Show|Window (|
|000059d0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|000059e0| 20 63 68 61 70 74 65 72 | 20 d2 57 69 6e 64 6f 77 | chapter| .Window|
|000059f0| 20 4d 61 6e 61 67 65 72 | d3 20 69 6e 20 49 6e 73 | Manager|. in Ins|
|00005a00| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 3a 20 4d |ide Maci|ntosh: M|
|00005a10| 61 63 69 6e 74 6f 73 68 | 20 54 6f 6f 6c 62 6f 78 |acintosh| Toolbox|
|00005a20| 20 45 73 73 65 6e 74 69 | 61 6c 73 2e 29 0d 57 68 | Essenti|als.).Wh|
|00005a30| 65 6e 20 63 72 65 61 74 | 69 6e 67 20 61 20 73 79 |en creat|ing a sy|
|00005a40| 73 74 65 6d 2d 6f 77 6e | 65 64 20 64 69 61 6c 6f |stem-own|ed dialo|
|00005a50| 67 20 62 6f 78 2c 20 79 | 6f 75 72 20 61 70 70 6c |g box, y|our appl|
|00005a60| 69 63 61 74 69 6f 6e 20 | 75 73 65 73 20 63 6f 6d |ication |uses com|
|00005a70| 62 69 6e 61 74 69 6f 6e | 73 20 6f 66 20 74 68 65 |bination|s of the|
|00005a80| 20 44 69 61 6c 6f 67 49 | 73 4d 6f 64 61 6c 20 61 | DialogI|sModal a|
|00005a90| 6e 64 20 44 69 61 6c 6f | 67 49 73 4d 6f 76 65 61 |nd Dialo|gIsMovea|
|00005aa0| 62 6c 65 20 66 6c 61 67 | 73 20 69 6e 20 74 68 65 |ble flag|s in the|
|00005ab0| 20 66 6c 61 67 73 20 66 | 69 65 6c 64 20 6f 66 20 | flags f|ield of |
|00005ac0| 61 20 53 79 73 74 65 6d | 44 69 61 6c 6f 67 49 6e |a System|DialogIn|
|00005ad0| 66 6f 20 73 74 72 75 63 | 74 75 72 65 20 74 6f 20 |fo struc|ture to |
|00005ae0| 73 70 65 63 69 66 79 20 | 77 68 65 74 68 65 72 20 |specify |whether |
|00005af0| 74 68 65 20 64 69 61 6c | 6f 67 20 62 6f 78 20 69 |the dial|og box i|
|00005b00| 73 20 6d 6f 64 61 6c 2c | 20 6d 6f 76 61 62 6c 65 |s modal,| movable|
|00005b10| 20 6d 6f 64 61 6c 2c 20 | 6f 72 20 6d 6f 64 65 6c | modal, |or model|
|00005b20| 65 73 73 2e 20 28 59 6f | 75 20 73 68 6f 75 6c 64 |ess. (Yo|u should|
|00005b30| 20 61 6c 77 61 79 73 20 | 73 65 74 20 6f 6e 65 20 | always |set one |
|00005b40| 6f 72 20 62 6f 74 68 20 | 66 6c 61 67 73 2c 20 62 |or both |flags, b|
|00005b50| 65 63 61 75 73 65 20 79 | 6f 75 72 20 61 70 70 6c |ecause y|our appl|
|00005b60| 69 63 61 74 69 6f 6e 20 | 73 68 6f 75 6c 64 20 6e |ication |should n|
|00005b70| 65 76 65 72 20 64 69 73 | 70 6c 61 79 20 61 20 6e |ever dis|play a n|
|00005b80| 6f 6e 6d 6f 76 61 62 6c | 65 2c 20 6d 6f 64 65 6c |onmovabl|e, model|
|00005b90| 65 73 73 20 64 69 61 6c | 6f 67 2e 29 0d 4c 69 73 |ess dial|og.).Lis|
|00005ba0| 74 69 6e 67 20 31 2d 34 | 20 69 6c 6c 75 73 74 72 |ting 1-4| illustr|
|00005bb0| 61 74 65 73 20 68 6f 77 | 20 74 6f 20 63 72 65 61 |ates how| to crea|
|00005bc0| 74 65 20 74 68 65 20 6d | 6f 64 65 6c 65 73 73 20 |te the m|odeless |
|00005bd0| 73 79 73 74 65 6d 2d 6f | 77 6e 65 64 20 64 69 61 |system-o|wned dia|
|00005be0| 6c 6f 67 20 62 6f 78 20 | 73 68 6f 77 6e 20 69 6e |log box |shown in|
|00005bf0| 20 46 69 67 75 72 65 20 | 31 2d 33 20 6f 6e 20 70 | Figure |1-3 on p|
|00005c00| 61 67 65 20 31 2d 37 2e | 0d 0d 4c 69 73 74 69 6e |age 1-7.|..Listin|
|00005c10| 67 20 31 2d 34 09 43 72 | 65 61 74 69 6e 67 20 61 |g 1-4.Cr|eating a|
|00005c20| 20 6d 6f 64 65 6c 65 73 | 73 20 73 79 73 74 65 6d | modeles|s system|
|00005c30| 2d 6f 77 6e 65 64 20 64 | 69 61 6c 6f 67 20 62 6f |-owned d|ialog bo|
|00005c40| 78 0d 0d 4f 53 45 72 72 | 20 4d 79 42 75 69 6c 64 |x..OSErr| MyBuild|
|00005c50| 4d 6f 64 65 6c 65 73 73 | 53 79 73 44 69 61 6c 6f |Modeless|SysDialo|
|00005c60| 67 28 76 6f 69 64 29 0d | 7b 09 53 79 73 74 65 6d |g(void).|{.System|
|00005c70| 44 69 61 6c 6f 67 49 6e | 66 6f 20 09 09 09 09 09 |DialogIn|fo .....|
|00005c80| 09 73 49 6e 66 6f 3b 0d | 09 4f 53 45 72 72 09 09 |.sInfo;.|.OSErr..|
|00005c90| 09 09 09 09 72 65 73 75 | 6c 74 3b 0d 09 73 49 6e |....resu|lt;..sIn|
|00005ca0| 66 6f 2e 66 6c 61 67 73 | 20 3d 20 44 69 61 6c 6f |fo.flags| = Dialo|
|00005cb0| 67 49 73 4d 6f 76 65 61 | 62 6c 65 20 2b 20 41 70 |gIsMovea|ble + Ap|
|00005cc0| 70 49 73 43 6f 6c 6f 72 | 53 79 6e 63 41 77 61 72 |pIsColor|SyncAwar|
|00005cd0| 65 20 2b 20 0d 09 09 09 | 09 09 09 43 61 6e 4d 6f |e + ....|...CanMo|
|00005ce0| 64 69 66 79 50 61 6c 65 | 74 74 65 20 2b 20 43 61 |difyPale|tte + Ca|
|00005cf0| 6e 41 6e 69 6d 61 74 65 | 50 61 6c 65 74 74 65 3b |nAnimate|Palette;|
|00005d00| 0d 09 73 49 6e 66 6f 2e | 70 69 63 6b 65 72 54 79 |..sInfo.|pickerTy|
|00005d10| 70 65 20 3d 20 30 4c 3b | 0d 09 73 49 6e 66 6f 2e |pe = 0L;|..sInfo.|
|00005d20| 70 6c 61 63 65 57 68 65 | 72 65 20 3d 20 6b 44 65 |placeWhe|re = kDe|
|00005d30| 65 70 65 73 74 43 6f 6c | 6f 72 53 63 72 65 65 6e |epestCol|orScreen|
|00005d40| 3b 0d 09 73 49 6e 66 6f | 2e 6d 49 6e 66 6f 2e 65 |;..sInfo|.mInfo.e|
|00005d50| 64 69 74 4d 65 6e 75 49 | 44 20 3d 20 6b 4d 79 45 |ditMenuI|D = kMyE|
|00005d60| 64 69 74 4d 65 6e 75 49 | 44 3b 0d 09 73 49 6e 66 |ditMenuI|D;..sInf|
|00005d70| 6f 2e 6d 49 6e 66 6f 2e | 63 75 74 49 74 65 6d 20 |o.mInfo.|cutItem |
|00005d80| 3d 20 6b 4d 79 43 75 74 | 49 74 65 6d 3b 0d 09 73 |= kMyCut|Item;..s|
|00005d90| 49 6e 66 6f 2e 6d 49 6e | 66 6f 2e 63 6f 70 79 49 |Info.mIn|fo.copyI|
|00005da0| 74 65 6d 20 3d 20 6b 4d | 79 43 6f 70 79 49 74 65 |tem = kM|yCopyIte|
|00005db0| 6d 3b 0d 09 73 49 6e 66 | 6f 2e 6d 49 6e 66 6f 2e |m;..sInf|o.mInfo.|
|00005dc0| 70 61 73 74 65 49 74 65 | 6d 20 3d 20 6b 4d 79 50 |pasteIte|m = kMyP|
|00005dd0| 61 73 74 65 49 74 65 6d | 3b 0d 09 73 49 6e 66 6f |asteItem|;..sInfo|
|00005de0| 2e 6d 49 6e 66 6f 2e 63 | 6c 65 61 72 49 74 65 6d |.mInfo.c|learItem|
|00005df0| 20 3d 20 6b 4d 79 43 6c | 65 61 72 49 74 65 6d 3b | = kMyCl|earItem;|
|00005e00| 0d 09 73 49 6e 66 6f 2e | 6d 49 6e 66 6f 2e 75 6e |..sInfo.|mInfo.un|
|00005e10| 64 6f 49 74 65 6d 20 3d | 20 6b 4d 79 55 6e 64 6f |doItem =| kMyUndo|
|00005e20| 49 74 65 6d 3b 0d 09 67 | 4d 79 50 69 63 6b 65 72 |Item;..g|MyPicker|
|00005e30| 20 3d 20 6e 69 6c 3b 0d | 09 72 65 73 75 6c 74 20 | = nil;.|.result |
|00005e40| 3d 20 43 72 65 61 74 65 | 43 6f 6c 6f 72 44 69 61 |= Create|ColorDia|
|00005e50| 6c 6f 67 28 26 73 49 6e | 66 6f 2c 20 26 67 4d 79 |log(&sIn|fo, &gMy|
|00005e60| 50 69 63 6b 65 72 29 3b | 0d 09 69 66 28 72 65 73 |Picker);|..if(res|
|00005e70| 75 6c 74 20 3d 3d 20 6e | 6f 45 72 72 20 26 26 20 |ult == n|oErr && |
|00005e80| 67 4d 79 50 69 63 6b 65 | 72 20 21 3d 20 6e 69 6c |gMyPicke|r != nil|
|00005e90| 29 0d 09 7b 09 50 4d 43 | 6f 6c 6f 72 20 6d 79 50 |)..{.PMC|olor myP|
|00005ea0| 4d 43 6f 6c 6f 72 3b 0d | 09 09 6d 79 50 4d 43 6f |MColor;.|..myPMCo|
|00005eb0| 6c 6f 72 2e 63 6f 6c 6f | 72 2e 72 67 62 20 3d 20 |lor.colo|r.rgb = |
|00005ec0| 67 4d 79 52 47 42 43 6f | 6c 6f 72 3b 0d 09 09 6d |gMyRGBCo|lor;...m|
|00005ed0| 79 50 4d 43 6f 6c 6f 72 | 2e 70 72 6f 66 69 6c 65 |yPMColor|.profile|
|00005ee0| 20 3d 20 30 4c 3b 0d 09 | 09 53 65 74 50 69 63 6b | = 0L;..|.SetPick|
|00005ef0| 65 72 43 6f 6c 6f 72 28 | 67 4d 79 50 69 63 6b 65 |erColor(|gMyPicke|
|00005f00| 72 2c 20 6b 4f 72 69 67 | 69 6e 61 6c 43 6f 6c 6f |r, kOrig|inalColo|
|00005f10| 72 2c 20 26 6d 79 50 4d | 43 6f 6c 6f 72 29 3b 0d |r, &myPM|Color);.|
|00005f20| 09 09 53 65 74 50 69 63 | 6b 65 72 43 6f 6c 6f 72 |..SetPic|kerColor|
|00005f30| 28 67 4d 79 50 69 63 6b | 65 72 2c 20 6b 4e 65 77 |(gMyPick|er, kNew|
|00005f40| 43 6f 6c 6f 72 2c 20 26 | 6d 79 50 4d 43 6f 6c 6f |Color, &|myPMColo|
|00005f50| 72 29 3b 0d 09 09 53 65 | 74 50 69 63 6b 65 72 50 |r);...Se|tPickerP|
|00005f60| 72 6f 6d 70 74 28 67 4d | 79 50 69 63 6b 65 72 2c |rompt(gM|yPicker,|
|00005f70| 20 22 5c 70 43 68 6f 6f | 73 65 20 61 20 68 69 67 | "\pChoo|se a hig|
|00005f80| 68 6c 69 67 68 74 20 63 | 6f 6c 6f 72 3a 22 29 3b |hlight c|olor:");|
|00005f90| 0d 09 09 53 65 74 50 69 | 63 6b 65 72 56 69 73 69 |...SetPi|ckerVisi|
|00005fa0| 62 69 6c 69 74 79 28 67 | 4d 79 50 69 63 6b 65 72 |bility(g|MyPicker|
|00005fb0| 2c 20 74 72 75 65 29 3b | 0d 09 7d 0d 09 72 65 74 |, true);|..}..ret|
|00005fc0| 75 72 6e 20 72 65 73 75 | 6c 74 3b 0d 7d 0d 42 65 |urn resu|lt;.}.Be|
|00005fd0| 66 6f 72 65 20 64 69 73 | 70 6c 61 79 69 6e 67 20 |fore dis|playing |
|00005fe0| 74 68 65 20 64 69 61 6c | 6f 67 20 62 6f 78 2c 20 |the dial|og box, |
|00005ff0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00006000| 20 6d 75 73 74 20 75 73 | 65 20 74 68 65 20 53 65 | must us|e the Se|
|00006010| 74 50 69 63 6b 65 72 43 | 6f 6c 6f 72 20 66 75 6e |tPickerC|olor fun|
|00006020| 63 74 69 6f 6e 20 74 6f | 20 73 70 65 63 69 66 79 |ction to| specify|
|00006030| 20 63 6f 6c 6f 72 73 20 | 66 6f 72 20 74 68 65 20 | colors |for the |
|00006040| 75 73 65 72 20 74 6f 20 | 73 74 61 72 74 20 77 69 |user to |start wi|
|00006050| 74 68 2e 20 53 65 74 74 | 69 6e 67 20 74 68 65 73 |th. Sett|ing thes|
|00006060| 65 20 6f 72 69 67 69 6e | 61 6c 20 61 6e 64 20 6e |e origin|al and n|
|00006070| 65 77 20 63 6f 6c 6f 72 | 73 20 69 73 20 64 65 73 |ew color|s is des|
|00006080| 63 72 69 62 65 64 20 69 | 6e 20 74 68 65 20 6e 65 |cribed i|n the ne|
|00006090| 78 74 20 73 65 63 74 69 | 6f 6e 2e 0d 4c 69 73 74 |xt secti|on..List|
|000060a0| 69 6e 67 20 31 2d 35 20 | 73 68 6f 77 73 20 68 6f |ing 1-5 |shows ho|
|000060b0| 77 20 74 6f 20 75 73 65 | 20 74 68 65 20 44 69 61 |w to use| the Dia|
|000060c0| 6c 6f 67 20 4d 61 6e 61 | 67 65 72 20 66 75 6e 63 |log Mana|ger func|
|000060d0| 74 69 6f 6e 20 47 65 74 | 4e 65 77 44 69 61 6c 6f |tion Get|NewDialo|
|000060e0| 67 20 74 6f 20 63 72 65 | 61 74 65 20 61 6e 20 61 |g to cre|ate an a|
|000060f0| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 6f 77 6e 65 64 |pplicati|on-owned|
|00006100| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2e 20 28 53 65 | dialog |box. (Se|
|00006110| 65 20 74 68 65 20 63 68 | 61 70 74 65 72 20 d2 44 |e the ch|apter .D|
|00006120| 69 61 6c 6f 67 20 4d 61 | 6e 61 67 65 72 d3 20 69 |ialog Ma|nager. i|
|00006130| 6e 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |n Inside| Macinto|
|00006140| 73 68 3a 20 4d 61 63 69 | 6e 74 6f 73 68 20 54 6f |sh: Maci|ntosh To|
|00006150| 6f 6c 62 6f 78 20 45 73 | 73 65 6e 74 69 61 6c 73 |olbox Es|sentials|
|00006160| 20 66 6f 72 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | for inf|ormation|
|00006170| 20 6f 6e 20 74 68 65 20 | 47 65 74 4e 65 77 44 69 | on the |GetNewDi|
|00006180| 61 6c 6f 67 20 66 75 6e | 63 74 69 6f 6e 2e 29 20 |alog fun|ction.) |
|00006190| 54 6f 20 75 73 65 20 74 | 68 69 73 20 64 69 61 6c |To use t|his dial|
|000061a0| 6f 67 20 62 6f 78 20 66 | 6f 72 20 61 20 63 6f 6c |og box f|or a col|
|000061b0| 6f 72 20 70 69 63 6b 65 | 72 2c 20 79 6f 75 72 20 |or picke|r, your |
|000061c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6e 65 65 64 |applicat|ion need|
|000061d0| 73 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 41 70 |s to cre|ate a Ap|
|000061e0| 70 6c 69 63 61 74 69 6f | 6e 44 69 61 6c 6f 67 49 |plicatio|nDialogI|
|000061f0| 6e 66 6f 20 73 74 72 75 | 63 74 75 72 65 20 61 6e |nfo stru|cture an|
|00006200| 64 20 74 68 65 6e 20 63 | 61 6c 6c 20 74 68 65 20 |d then c|all the |
|00006210| 41 64 64 50 69 63 6b 65 | 72 54 6f 44 69 61 6c 6f |AddPicke|rToDialo|
|00006220| 67 20 66 75 6e 63 74 69 | 6f 6e 2c 20 61 73 20 73 |g functi|on, as s|
|00006230| 68 6f 77 6e 20 69 6e 20 | 74 68 69 73 20 65 78 61 |hown in |this exa|
|00006240| 6d 70 6c 65 2e 0d 0d 4c | 69 73 74 69 6e 67 20 31 |mple...L|isting 1|
|00006250| 2d 35 09 43 72 65 61 74 | 69 6e 67 20 61 6e 20 61 |-5.Creat|ing an a|
|00006260| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 6f 77 6e 65 64 |pplicati|on-owned|
|00006270| 20 64 69 61 6c 6f 67 20 | 62 6f 78 0d 0d 4f 53 45 | dialog |box..OSE|
|00006280| 72 72 20 42 75 69 6c 64 | 41 70 70 44 69 61 6c 6f |rr Build|AppDialo|
|00006290| 67 28 76 6f 69 64 29 0d | 7b 41 70 70 6c 69 63 61 |g(void).|{Applica|
|000062a0| 74 69 6f 6e 44 69 61 6c | 6f 67 49 6e 66 6f 20 09 |tionDial|ogInfo .|
|000062b0| 09 09 09 09 09 09 09 61 | 49 6e 66 6f 3b 0d 09 4f |.......a|Info;..O|
|000062c0| 53 45 72 72 09 09 09 09 | 09 09 09 72 65 73 75 6c |SErr....|...resul|
|000062d0| 74 3b 0d 09 2f 2a 20 63 | 72 65 61 74 65 20 74 68 |t;../* c|reate th|
|000062e0| 65 20 64 69 61 6c 6f 67 | 20 62 6f 78 2c 20 62 75 |e dialog| box, bu|
|000062f0| 74 20 65 6e 73 75 72 65 | 20 69 74 27 73 20 63 6f |t ensure| it's co|
|00006300| 6c 6f 72 20 2a 2f 0d 09 | 6d 79 44 69 61 6c 6f 67 |lor */..|myDialog|
|00006310| 20 3d 20 47 65 74 4e 65 | 77 44 69 61 6c 6f 67 28 | = GetNe|wDialog(|
|00006320| 6b 4d 79 44 69 61 6c 6f | 67 49 44 2c 20 6e 69 6c |kMyDialo|gID, nil|
|00006330| 2c 20 28 57 69 6e 64 6f | 77 50 74 72 29 2d 31 29 |, (Windo|wPtr)-1)|
|00006340| 3b 0d 09 2f 2a 20 73 65 | 74 20 75 70 20 74 68 65 |;../* se|t up the|
|00006350| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 44 69 61 6c | Applica|tionDial|
|00006360| 6f 67 49 6e 66 6f 20 73 | 74 72 75 63 74 75 72 65 |ogInfo s|tructure|
|00006370| 20 2a 2f 0d 09 61 49 6e | 66 6f 2e 66 6c 61 67 73 | */..aIn|fo.flags|
|00006380| 20 3d 20 44 69 61 6c 6f | 67 49 73 4d 6f 76 65 61 | = Dialo|gIsMovea|
|00006390| 62 6c 65 20 2b 20 41 70 | 70 49 73 43 6f 6c 6f 72 |ble + Ap|pIsColor|
|000063a0| 53 79 6e 63 41 77 61 72 | 65 20 2b 20 0d 09 09 09 |SyncAwar|e + ....|
|000063b0| 09 09 09 43 61 6e 4d 6f | 64 69 66 79 50 61 6c 65 |...CanMo|difyPale|
|000063c0| 74 74 65 20 2b 20 43 61 | 6e 41 6e 69 6d 61 74 65 |tte + Ca|nAnimate|
|000063d0| 50 61 6c 65 74 74 65 3b | 0d 09 61 49 6e 66 6f 2e |Palette;|..aInfo.|
|000063e0| 70 69 63 6b 65 72 54 79 | 70 65 20 3d 20 30 4c 3b |pickerTy|pe = 0L;|
|000063f0| 0d 09 61 49 6e 66 6f 2e | 74 68 65 44 69 61 6c 6f |..aInfo.|theDialo|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.